While loop crash depending on context #1349
Unanswered
Samx070201
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It appears that depending on the context where the component is placed, the async/chain animation composed with the useSpring hook stops working and crashes the application.
I have recreated the code inside Codesandbox, even though inside an isolated environment it looks like it doesn't have any issues.
#982 seems to be the most similar problem to what has happened to me, unfortunately though I'm yet unable to upgrade to the beta version of the library (9.x.x), which judging by what the closing answer for the mentioned issue was, fixed the issue.
Having said this, i was wondering if anybody could help me out understand what the problem seems to be with this loop/crash situation apparently randomly happening.
REFERENCE
For some references I'm gonna leave the Codesandbox link and my package json dependencies in order to maybe get a better understanding of what might be going on. If anything else is needed I can for sure post more informations about the issue.
https://codesandbox.io/s/while-loop-showcase-forked-smqre?file=/src/index.js
package.json
ENVIRONMENT
react: 17.0.1
react-dom: 17.0.1
react-spring: 8.0.27
Beta Was this translation helpful? Give feedback.
All reactions