Replies: 4 comments
-
Thanks @adnanbrq for reporting this. Could you please provide more details, such as an MVP? HRM issues are usually not related to oRPC. Also, try changing your Tanstack start version. |
Beta Was this translation helpful? Give feedback.
-
Hey @unnoq , I've created a repo that demonstrates the issue. While reproducing it, I noticed that the problem only occurs when a layout fetches data and its children do as well though this setup should be valid. |
Beta Was this translation helpful? Give feedback.
-
This appears to be a Tanstack issue specific to your current SSR setup (or Tanstack problem with SSR and HMR).
It seems that an HMR issue on SSR might be temporarily making the server unavailable. |
Beta Was this translation helpful? Give feedback.
-
Yes this might be related to how TanStack handles SSR with HMR. Thanks for taking a look into it! 👍🏼 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The following error appears only on the client after an oRPC-related file has been hot-reloaded.
In my case, I’m using a TanStack Start-based application combined with oRPC’s TanStack Query integration.
Initially, visiting the site works fine. But when an oRPC-related file is changed as described the route's loader seems to kick in, and that’s when the error occurs. There’s no trace of it on the server, and I’m unable to debug the request.
Examle loader:
Error
Beta Was this translation helpful? Give feedback.
All reactions