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
Yeah I also have this question right now, using the next/router yields a router not mounted error so I'm now somewhat confused about how this all works lol
Edit: ok turns out you get route params as props on the page component kind like:
export function MyPage({ params }: { params: { id: string } }) {} so I can access the id in the url if I nest my file like so:
The hand full of abstractions on useRouter https://unitools.geekyants.com/packages/router#props
are kind of bare bones. We have push, replace, back, and navigate?
I'm having to create my own native/web wrappers for things like url params and such. This hook could use more love. It feels forgotten.
The text was updated successfully, but these errors were encountered: