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
Fork https://github.com/joryphillips/macarons, a Remix SPA project using React 19.0.0-rc-a960b92c-20240819 so that HMR works, that does not include any clientLoader functions
Use npm run dev to see console message mentioned below
Use npm run build and then serve it to also see console message in hosted build
The message is
💿 Hey developer 👋. You can provide a way better UX than this when your app is running `clientLoader` functions on hydration. Check out https://remix.run/route/hydrate-fallback for more information.
This message should probably be tweaked so it's not specific to clientLoader but the message is accurate. In SPA mode even without client loaders - your application has to load all of the JS bundles before it can render anything to the user. Without a HydrateFallback you just show the user a completely blank white screen while all of that is loading. Remix encourages you to add a root HydrateFallback to show them some sort of loading message or spinner or something. That HydrateFallback ends up in the initial index.html document so it shows to the user immediately.
Reproduction
npm run dev
to see console message mentioned belownpm run build
and then serve it to also see console message in hosted buildThe message is
System Info
Used Package Manager
npm
Expected Behavior
SPA project with no clientLoader functions should not have console message about clientLoaders, especially in the final build
Actual Behavior
SPA project with no clientLoader functions is showing console message about clientLoaders in both dev and build
The text was updated successfully, but these errors were encountered: