Skip to content

Styled Components + Remix SPA Mode + Vite #474

@seanmcquaid

Description

@seanmcquaid

Based on the examples in this repo, Remix + Styled Components with SSR is a relatively solved solution. However, SPA mode makes things interesting. We do not have a server to inject the styles in at runtime so if there is a full document refresh (like in the case of an error that causes rehydration to kick off and render the ErrorBoundary) then all styles with styled components are lost.

Has anyone come up with a solution for this quite yet they'd be willing to share?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions