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
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:
usePage doesn't come with any preloaded data. It spits out whatever you bind to it. What's preventing you from sharing request()->all() in your middleware?
Ok thanks, I think documentation is not complete and can be improved… there are a lots of things that many starter devs don’t find on docs website and find replies elsewhere…
Version:
@inertiajs/react
version: latestDescribe the problem:
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:
See more here:
#1768
The text was updated successfully, but these errors were encountered: