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

Fix for #2329 (use-animation-state crashing charts) #2334

Merged
merged 2 commits into from
Jun 27, 2022

Conversation

gksander
Copy link
Contributor

I'm not exactly sure why this is just now becoming an issue, but somehow a props value is undefined (I think on just first render) and it was throwing because of a property-lookup on undefined. Seems like maybe because usePreviousProps is always going to return undefined on first render until the useEffect therein kicks in.

Nevertheless, this fix seems to resolve the issue reported in #2329.

Copy link
Member

@scottrippey scottrippey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating the unit test! I'm investigating too, to see how this might have broken.

@gksander gksander merged commit a907103 into main Jun 27, 2022
@gksander gksander deleted the use-animation-state-fix branch June 27, 2022 20:35
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

Successfully merging this pull request may close these issues.

3 participants