Replies: 1 comment
-
Sounds weird, unless you server-render (RSC when implemented) them maybe, but you can use that on the client: |
Beta Was this translation helpful? Give feedback.
0 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.
-
Currently there is no function to redirect both from
loader
and from a component render function. Inside loader you can throw a redirect, inside a component you have to use an hook.Remix should intercept errors and checking if they are a Response instance, if they are a redirect response then do a client navigation.
Next.js does something similar with their
redirect()
functionThis wouldn't be a breaking change because throwing a Response would simply go to the ErrorBoundary otherwise.
Beta Was this translation helpful? Give feedback.
All reactions