~/talk

nextTick Down to Business

Talkat VueConf TO 2018 · on Friday, 2018-11-16· [vue, testing]
links:none on file
slides:none on file

Explains that nextTick schedules microtask callbacks that run before macro tasks like setTimeout and that $nextTick passes context instead of needing manual bind, reproduces the surprising bug where a nonreactive "bad" mutator gets lumped with reactive updates, builds a visual pulley called few visualization to watch callbacks fire, inspects lifecycle console logs to show nextTick ordering, and recommends using it when needing to mutate data then assert DOM (common in tests) rather than relying on setTimeout.

AI-written summary · about

  1. 0:00Introduction
  2. 0:24Trashbrain
  3. 1:30Test example
  4. 3:00Hooks
  5. 5:00Cleaning machine
  6. 5:45Code example
  7. 10:35Resources
~/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.