How to build undo/redo in a multiplayer environment

undo
redo

How to build undo/redo in a multiplayer environment

liveblocks.io/decks/multiplayer-undo-redo