Trying to use react-anime for mounting/unmounting of components but animations are re-run every time component is re-rendered, regardless if something changes in child or <Anime ...> definition.
e.g. <Anime opacity={[0, 1]}>hello</Anime> will rapidly flash 'hello' each time you run setState or e.g. props are changed via Redux. This makes the library a bit useless, particularly for Redux, as component must manually be cached and wrapped to avoid this behaviour.
Maybe a feature to limit animations to only run when mounting/unmounting could fix it temporarily.
Version: 2.0.1
Trying to use react-anime for mounting/unmounting of components but animations are re-run every time component is re-rendered, regardless if something changes in child or
<Anime ...>definition.e.g.
<Anime opacity={[0, 1]}>hello</Anime>will rapidly flash 'hello' each time you runsetStateor e.g. props are changed via Redux. This makes the library a bit useless, particularly for Redux, as component must manually be cached and wrapped to avoid this behaviour.Maybe a feature to limit animations to only run when mounting/unmounting could fix it temporarily.
Version: 2.0.1