Repository navigation
Replies: 2 comments 3 replies
|
this needs more context. i assume you are using TanStack Start, not just Router. Are you using |
|
Correction for the prerendering requirement: my initial In the reproduction discussed in the follow-up,
A workaround with different trade-offs is to make the MDX component part of the route module graph, for example by generating a route module per MDX file with a static import. An eager The fallback behavior discussed here is related to #289 and the router-level proposal #8188. See Selective SSR for the SSR modes. The corrected reproduction analysis and its boundaries are in the linked follow-up. |
Uh oh!
There was an error while loading. Please reload this page.
Currently, loader needs to return serializable data. However, there are always a need to load data that is not serializable and that can result in a serialisation error.
For example:
In this case, the import is not able to be sent from server to client during SSG. It can load within 1 second and should be ready when the navigation happens.
But if the import is initiated at the client side and handled with
<Await>, a fallback will still be shown and flashed pretty quickly.I tried all kinds of ways to make it work so that the navigation will happen when Content is loaded, but none of the ways will allow this behaviour.
This makes me feel that a react-router equivalent of
clientLoaderis helpful in this context.All reactions