You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, @dielduarte !
This library is incredible!
Is there a way to re-animate the component when the component is re-rendered?
I have a list of map markers that I want to re-animate every time we change the markers on a page. See the example.
https://codesandbox.io/s/1vjm67ny87
Here I have them animated every time the page is reloaded, yet how to reload them every time the component is re-mounted? Such as in search where the component appear and disappear depending on a search output?
The text was updated successfully, but these errors were encountered:
What happened in your example, indeed the pins won't be updated because you use the key prop with a fixed value, because of that React with your diff algorithm know which components really need a rerender.
Look my example, I pass a dynamic key and force an update after 3 seconds to add a new location and then all pins are animated again like you look for! :)
I hope that this can help you, I'll close this issue but feel free to opening again.
Hey, @dielduarte !
This library is incredible!
Is there a way to re-animate the component when the component is re-rendered?
I have a list of map markers that I want to re-animate every time we change the markers on a page. See the example.
https://codesandbox.io/s/1vjm67ny87
Here I have them animated every time the page is reloaded, yet how to reload them every time the component is re-mounted? Such as in search where the component appear and disappear depending on a search output?
The text was updated successfully, but these errors were encountered: