Enter, Update, Exit
In the previous lesson we've made our first animated scatterplot! 🎉
But it was an easy one: the same exact group were available in each dataset. Now how do we manage groups that enter for the first time, or are not available anymore?
Wip
4 minutes readThe problem
I need an example where I see a disparition and an apparition
Ok but there is a problem now: how do we deal with the data points that enter the dataset, or the one that exit?
That's the plan for the next lesson.
For the enter part, we can manage it thanks to the from
property of useSpring
For the exit part, I would need to make it using another hook: useTransition
Element id
Explain what happens if the elements are not in the right order? Explain that the key of the element is important