~/talk

Vue’s Composition API: Why it’s Important

Talkat Connect.Tech 2021 · 2021-11-08..11-10· [vue]
slides:none on file

Argues the Composition API replaces Options magic with plain JavaScript closures and shows a live refactor of a small bookcase app from Options API to Composition API that runs correctly after the change. Uses Vue 3 (compatible with Vue 2 via the composition API plugin), ref and reactive wrappers, computed and onMounted, and optional setup script; claims ~99% API compatibility across Vue 2→3, full TypeScript support, easier debugging and unit testing, and incremental migration without rewriting the whole app.

AI-written summary · about

  1. 0:00Introduction
  2. 0:54Why the Composition API
  3. 2:47Options API
  4. 4:00Composition API
  5. 5:41Writing Code
  6. 5:52What is Composition API
  7. 7:16Setting up Composition API
  8. 12:20Reactives
  9. 12:50Scope
  10. 14:00Mounted
  11. 15:20Computed
  12. 18:30Object
  13. 19:20Composition
  14. 20:40More Natural
  15. 23:20Option Syntax
  16. 25:10Vue Reactive
  17. 27:55Vue Typescript
  18. 28:40Paste Interfaces
  19. 30:40Props
  20. 35:50Reactive Store
  21. 39:40Reactive Objects
  22. 42:40Setup Script
~/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.