@tannerlinsley.com @phry.dev any tips on how to skip suspending when I update search params in Tanstack Router which re-triggers `preloadQuery` in the `loader` that returns `queryRef` that is then read with `useReadQuery`? Wrapping `navigate` with `startTransition` doesn't seem to help 🤔
Post
@tkdodo.eu @manuelschiller.bsky.social I would like to better understand what "but are short-circuited by useSyncExternalStore used by the router" actually means in practice? Does it mean that trying to stop router driven suspension with transitions is not a viable solution in Tanstack Router?
The router uses useSyncExternalStore for it's state, and every time an update is received, that de-opts from concurrent features to avoid tearing. It's a trade-off between being fully concurrent compatible and having fine-grained subscriptions to router state. Can't have both right now.
0 reposts1 like
No replies yet.