-
-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use throw render()
/ throw redirect()
inside React/Vue/Solid components
#1707
Comments
throw render()
/ throw redirect()
inside React/Vue/Solid comopnentsthrow render()
/ throw redirect()
inside React/Vue/Solid components
Deprioritizing, as per vikejs/vike-react#123 (comment). |
Is this not supposed to work already? |
@simplecommerce Yes it already works if the |
Description
In principle, it should be possible to use
throw render()
andthrow redirect()
inside UI components.For this to work,
vike-{react,vue,solid}
need to catch the exception and then re-throw it inside theonRenderHtml()
/onRenderClient()
hook, so that the exception propagates to Vike.Contribution welcome.
The text was updated successfully, but these errors were encountered: