Would be great to have query params as props also, like Nextjs #1768
vitalijalbu
started this conversation in
Ideas
Replies: 0 comments
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.
-
Hi guys, I'm coming from nextjs to inertiajs, really a good product and I love it.
But there's a route minus. Of course it can be fixed, but would be fine having it as default.
Problem:
Would be great to have query params as props also, like Nextjs, so we can access it like:
const { id, query, url } = usePage();
This is my current code to create a dynamic navbar, based o nthe id of the url:
Beta Was this translation helpful? Give feedback.
All reactions