Skip to content

panic when including an <ErrorBoundary /> in 0.5.0-beta #409

Description

@lukexor

This is a recent regression with recent leptos 0.8.0, because it wasn't happening in early versions of 0.5.0, but it also happens now on 0.5.0-alpha and confirmed it doesn't happen in v0.4.7

To reproduce add the following around the <Routes> component in the ssr_axum example:

<ErrorBoundary fallback=|_| { view! { <p>"An error occurred"</p> } }>

Resulting panic when the SSR runs:

thread 'tokio-runtime-worker' panicked at /home/luke/dev/sources/thaw/thaw_utils/src/dom/ssr_mount_style.rs:168:18:
you are using SSRMountStyleProvider without a <head> tag

I've tried moving where the ErrorBoundary is as well and it doesn't seem to matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions