useTransition: TypeError: Cannot read property 'ref' of null #990
-
I'm on the latest This code has worked before and it does work with 8.x, unfortunately using 8.x breaks other things in my script, so I can't go back to that. I have no idea what's wrong with it, I haven't even updated React Spring, but it all of a sudden broke and refuses to work. The code is exactly the same as the useTransition example:
What's wrong with it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Codesandbox with example |
Beta Was this translation helpful? Give feedback.
-
You're using the old |
Beta Was this translation helpful? Give feedback.
You're using the old
useTransition
API. See here: https://aleclarson.github.io/react-spring/v9/breaking-changes/