Replies: 2 comments 3 replies
-
What version of react-spring are you using? |
Beta Was this translation helpful? Give feedback.
3 replies
-
"react-spring": "^9.4.5" |
Beta Was this translation helpful? Give feedback.
0 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to create animated page transitions using useTransition(). I am using useLocation() provided from react-router-dom in order to get the pathname from the location object. This error constantly comes up I am assuming because the location object is null until the component is rendered.
TypeError: Cannot read properties of undefined (reading 'pathname')
Sorry just to clarify my useLocation() is within the Router. I have defined Router inside of the index.js file where it is rendering the App component
Beta Was this translation helpful? Give feedback.
All reactions