TanStackT
TanStack10mo ago
3 replies
static-pink

Link & startTransition

Hello everyone !

I am currently facing an issue with the usage of suspense in Tanstack Start.

This is my setup :

_app.tsx : the layout with the sidebar with the chat links
_app.index.tsx : the route for the new chat page (like chatgpt)
_app.chats.$chatId.tsx : the route for an existing chat

My problem is that in _app.chats.$chatId.tsx I use the use hook to suspend on a (cached) promise

I though that navigation was wrapped in startTransition given that the startTransition prop is deprecated on the Link component, but my app is flashing when clicking links to navigate to the chats page

Any idea what's going on ?

Thanks you all

(Love Start)
Was this page helpful?