Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styled Components + Remix SPA Mode + Vite #474

Open
seanmcquaid opened this issue May 4, 2024 · 0 comments
Open

Styled Components + Remix SPA Mode + Vite #474

seanmcquaid opened this issue May 4, 2024 · 0 comments

Comments

@seanmcquaid
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants