Skip to content

Is there a way to SSR the toast so it appears in the initial HTML? #390

@iamkd

Description

@iamkd

I know this is a pretty niche use case, but we want to show toasts after successful form submission and redirect.

Using useEffect and reading from query params/cookies works fine, but we are seeing a noticeable hit to our performance metrics (LCP), because the toast counts as the LCP element and it only appears after the React app is mounted.

If there is any possibility to actually trigger the toast during the SSR pass so it appears in the initial HTML, it would help us a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions