You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm moving over from a CRA application and I'm using SASS modules for most of my components.
If I have the application wrapped in QueryClientProvider all of my styles are just dumped in a single style tag
And the moment I do any changes, hot reload doesn't persist that style tag.
If I don't have it wrapped in QueryClientProvider I then get a per module style tag with a data-vite-dev-id
Which then persists through hot reloads.
I noticed the same when integrate i18n, until I added some code into entry.server.tsx
I'm assuming the problem is with SSR / a misunderstanding of how Remix is meant to be working.
If it helps, I don't need SSR for this project and disabling it creates the same issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm moving over from a CRA application and I'm using SASS modules for most of my components.
If I have the application wrapped in
QueryClientProvider
all of my styles are just dumped in a single style tagAnd the moment I do any changes, hot reload doesn't persist that style tag.
If I don't have it wrapped in

QueryClientProvider
I then get a per module style tag with adata-vite-dev-id
Which then persists through hot reloads.
I noticed the same when integrate i18n, until I added some code into
entry.server.tsx
I'm assuming the problem is with SSR / a misunderstanding of how Remix is meant to be working.
If it helps, I don't need SSR for this project and disabling it creates the same issue.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions