In principle, it should be possible to use throw render() and throw redirect() inside UI components.
For this to work, vike-{react,vue,solid} need to catch the exception and then re-throw it inside the onRenderHtml()/onRenderClient() hook, so that the exception propagates to Vike.
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.