2 ms·
I implemented such a solution in a React app and I really appreciated the ability to apply pending state changes without mutating the state itself. I don't kno
by mbrock 10y ago
I implemented such a solution in a React app and I really appreciated the ability to apply pending state changes without mutating the state itself.
I don't know of any open source libraries for the command queue itself. If your state changing commands go through some kind of layer that you control then this stuff is easier. When I implemented it, I first refactored all the commands to go through the same code path, which I could then modify to implement the queue.