~/talk

How to build undo/redo in a multiplayer environment

Talkat React Brussels 2022 · on Friday, 2022-10-14· [frontend-architecture, react]
slides:none on file

Shows that state snapshots (Memento) break in real-time collaboration and instead stores inverse actions with a command pattern so concurrent edits merge instead of clobbering work. Demonstrates grouping transient events with pause/resume grouping to avoid hundreds of undo steps while preserving selection and UI state. Provides concrete React code using Liveblocks’ useHistory hook, and reports the live demo (remote-controlled deck) successfully running these ideas in a production-like setup.

AI-written summary · about

  1. 0:00Introduction
  2. 1:33The memento pattern challenge
  3. 3:01The command pattern solution
  4. 6:27Managing intermediary actions
  5. 8:09Improving user experience
  6. 9:34Implementation with React
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.