New feature: throw Route.redirect()
#3598
Closed
KubaJastrz
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
not against it, but what does this do more than just setting the |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Instead of the regular
throw redirect()
where you need to figure out the absolute path and all the required search params, I propose to add a new functionality forRoute
, which would resolve paths relatively from ourRoute
. Similar vibes toRoute.navigate()
helper function accessible from the route component.Example:
Beta Was this translation helpful? Give feedback.
All reactions