Replies: 7 comments 5 replies
|
I'm curious about this as well. While using lazy loading, can't I suspense the component and add a fallback loader component? |
|
https://twitter.com/tannerlinsley/status/1732474127712481371 I remember Tanner made question pools related to it but I cannot find results |
|
It is happening inside a React transition, but because useSyncExternalStore doesn’t support transitions fully, it deopts to showing the pending fallbacks immediately |
|
any updates on this? |
|
Is it possible to use |
|
Does anyone know any resource from react that would indicate they are working on a way for external stores to hook into reacts concurrent mode? Would be easier to follow any such resource than asking back here every couple months - although from a bit of googling, I can't find anything from the react team to indicate they even care about exposing this functionality to external stores (Which is a real shame, because something like a router where you are extremely likely to have a blocking render is a perfect candidate for async rendering between route transitions) |
|
I’ve opened an RFC proposing a Router-owned presented state for suspending React navigations. It builds on the limitation described here and covers the urgent-mount and superseded-navigation cases, SSR and hydration trade-offs, and the open design questions from an opt-in prototype. I’d welcome feedback there. |
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,
Maybe I missed something (very likely) but it seems to me that when we transition from one route to another, the preload is not happening in a react transition (the one you get by using
useTransition).This causes the whole app to suspend, if you actually load resources that suspend. The effect is that it triggers
<Suspense>component somewhere in the tree and yet, disregards the pending element.Did I miss the trick to make it use react transitions or the router is not made with this design in mind at all (which would discard using relay, since relay preloadedQueries suspend)?
Thank you
All reactions