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 encountering an issue. When I import app.css into root.tsx, and then create a user via the /users/create page, the redirect to the new user's page causes a full page refresh. The browser still displays the /users/create page, rather than navigating correctly via client-side routing.
However, if I remove the app.css import and restart the dev server (bun run dev), the redirect works correctly—it's a client-side redirect
without a full page reload.
This issue only occurs in development. When I run bun run build followed by bun start, everything works as expected, even with app.css imported.
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.
-
I'm encountering an issue. When I import app.css into root.tsx, and then create a user via the /users/create page, the redirect to the new user's page causes a full page refresh. The browser still displays the /users/create page, rather than navigating correctly via client-side routing.
Here’s a gist of my code:
https://gist.github.com/redhat127/6d05375734c09de6eb6eb3a1d933c76d
However, if I remove the app.css import and restart the dev server (bun run dev), the redirect works correctly—it's a client-side redirect
without a full page reload.
This issue only occurs in development. When I run bun run build followed by bun start, everything works as expected, even with app.css imported.
Beta Was this translation helpful? Give feedback.
All reactions