plus1tv / react-anime

✨ (ノ´ヮ´)ノ*:・゚✧ A super easy animation library for React!

Home Page:https://codepen.io/collection/nrkjgo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mapping array inside <Anime /> on state update won't render

profran opened this issue · comments

commented

Today I tried to use the cascading list feature, which worked with an initial state, but it didn't work when updating the state.

I followed the steps written here: https://alain.xyz/libraries/react-anime

I created a codesandox to reproduce the issue: https://codesandbox.io/embed/github/profran/olimpiada-inet-2019/tree/master/

Not sure if we're talking about the same thing, but I've tried a nested list where each list possibly has multiple nested lists (basically a tree). Whenever I edit the state, the animation of all nodes simply fail to render and are removed from the page.

Same here. As soon as new props (items) are being passed, causing a re-render I get this error:
TypeError: a is null

My suspicion is that it somehow wants to animate items that are unmounted, but they are not there anymore at that point.

Cheers ✌️