Skip to content

Use throw render() / throw redirect() inside React/Vue/Solid components #1707

@brillout

Description

@brillout

Description

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.

Contribution welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions