You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I render previousLocation till current location data is preloaded.
In some parts of applkication i use useLocation which in verion 5, i believe return valu for rendered location... but now it is always current location.
// previous location = /path1// current location = /path2constelement=useRoutes(routes,previousLocation)returnelement// some deep child component constlocation=useLocation()// returns path2, when path 1 is expected
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I render
previousLocation
till current location data is preloaded.In some parts of applkication i use
useLocation
which in verion 5, i believe return valu for rendered location... but now it is always current location.Beta Was this translation helpful? Give feedback.
All reactions