~/talk

Race Conditions in JavaScript Apps

Talkat JSConf.Asia 2019 · 2019-06-14..06-16· [frontend-architecture, vue]
slides:none on file

Shows concrete failures and fixes: an autosuggest demo built with Vue.js demonstrates that simply awaiting requests yields out‑of‑order results, solved first by generate request ID checks and then refined to accept useful interim replies (three iterations until correct). A real‑time collaborative app at Taskworld adopts pending operations queue and overlay pending changes instead of optimistic writes, sequences retries, persists the queue to client storage and uses a single‑tab leader election so optimistic UI works and data loss is prevented.

AI-written summary · about

  1. 0:00Introduction
  2. 2:40Search
  3. 9:25First takeaway
  4. 10:20Optimistic Updates
  5. 21:00Preventing further data loss
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.