Accidental state persistence across next dynamic routes?
Just noticed that /profile/[username].tsx persists
useState()
between different users in my app... My solution and the first stackoverflow answer I found is:
This works for me but it feels weird after avoiding useEffects before. Is there a better way to do this or is the useEffect as good as it gets?0 Replies