React 19’s useOptimistic hook causes re-render of an entire array
I am still learning and trying out the new features from React 19’s RC.
Recently I’ve started to work on a simple real-time chat-app.
This is how function that is ran using useActionState and uses useOptimistic looks like (inside of Textarea component):