The way you are doing it is correct, you want states to show instant change.
Writing to database without the buffer can be slow and clumsy.
To do a drag & drop thing is essentially the same.
The way you are doing it is correct, you want states to show instant change.
Writing to database without the buffer can be slow and clumsy.
To do a drag & drop thing is essentially the same.