Open passariello opened 1 day ago
version 7
const location = useLocation() useEffect( () => { console.log(location) }, [location] )
useEffect will be fired from location change. Work in 6 ... not in 7 It's a disaster!
no page change if location change. Make the route completely un-useful
This should work just fine. We need to see more context.
Can you provide a reproduction on Stack Blitz or a similar tool?
What version of React Router are you using?
version 7
Steps to Reproduce
Expected Behavior
useEffect will be fired from location change. Work in 6 ... not in 7 It's a disaster!
Actual Behavior
no page change if location change. Make the route completely un-useful