useOptimistic flashes with previous value when revalidating
Unanswered
Black carpenter ant posted this in #help-forum
Black carpenter antOP
I wanted optimistic state updates with server actions so I reached out for the useOptimistic hook. But when the content is revalidated there is a flash of previous state for some reason.
I have added more details related to the issue in this discussion:
https://github.com/vercel/next.js/discussions/54247
I have added more details related to the issue in this discussion:
https://github.com/vercel/next.js/discussions/54247