Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
profran opened this issue Aug 23, 2019 · 2 comments
Open

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

profran opened this issue Aug 23, 2019 · 2 comments

Comments

@profran
Copy link

profran commented Aug 23, 2019

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/

@foxbunny
Copy link

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.

@mhoritani
Copy link

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 ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants