ibrahimyaacob
ibrahimyaacob4w ago

optimistic updates with view transition

i already wrap the messages component with the ViewTransition with unique name and i tried wrapping startTransition callback on either setQuery & the handleSendMessage but it doesnt work. what's the right approach ? i just want a smooth animation when new message is inserted
No description
1 Reply
erquhart
erquhart4w ago
Hard to say what could be wrong just based on the component as it looks pretty normal. If you can share your transition related code might be able to help a bit more. But ViewTransition is also very new and has a fair amount of known issues, especially in React, Nextjs, and in dev environments. Also not supported in Firefox or Firefox based browsers, in case you're on one of those.

Did you find this page helpful?