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
This have two benefits, inferring data from the route means you can straight up pass it to a component directly.
The other benefit is when you're creating a link and need to pass it params, you get
<ahref={routes.user({userId: "2").href}link</a>
And programatically redirecting would also be supported with types
routes.post({postId: "abc"}).push();
The text was updated successfully, but these errors were encountered:
What is the feature you are proposing?
Routes could look like this:
This have two benefits, inferring data from the route means you can straight up pass it to a component directly.
The other benefit is when you're creating a link and need to pass it params, you get
And programatically redirecting would also be supported with types
The text was updated successfully, but these errors were encountered: