~/talk

Pinia Disaster class

Talkat VueConf Toronto 2023 · 2023-11-08..11-09· [vue]
slides:none on file

Pinia reaches four years and lessons are concrete: avoid externalizing state out of the state function because it shares instances and breaks SSR and devtools; don’t use readonly wrappers that prevent time travel and plugin inspection; stop casting {} as Interface — that yields silent runtime errors, use ref/Ref generics or explicit unions instead; prefer refs over reactive arrays to avoid disconnected state when reassigning; treat route or browser APIs as the source of truth for global IDs and use stores as composable singletons, not a catch‑all.

AI-written summary · about

  1. 0:00Introduction and evolution
  2. 2:30Breaking old habits
  3. 6:12Avoiding anti-patterns
  4. 10:00TypeScript best practices
  5. 12:28Using composables correctly
  6. 17:45Reactive state vs. refs
  7. 19:46Global state management
  8. 25:17Pinia as a composable
  9. 28:33Conclusion and resources
  10. 30:18Q&A session
~/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.