~/talk

The right perspective for working with script-setup

Talkat vuejs.de Conf 2022 · on Wednesday, 2022-10-05· [vue, compilers-and-language-design]
slides:none on file

Explains that script setup is a compiler-only syntax that hoists imports, inlines the render into the setup closure, and produces no extra runtime or bundle cost while giving a small re-render performance win. Shows concrete compiler helpers: defineProps and defineEmits map to the usual options, defineExpose makes internal refs available (demo toggles a ref visible to the parent), and the experimental reactivity transform ($-prefixed refs) removes explicit ref imports but has behavioral and adoption caveats; available in Vue 3 and backported to Vue 2.7.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:13Options API vs Composition API
  3. 5:26What is script-setup
  4. 7:13Under the hood of script-setup
  5. 10:03Compiler hints for props and emits
  6. 12:52Exposing component state
  7. 17:08Additional script block use cases
  8. 20:48Type-based props and events
  9. 25:02Reactivity transform
  10. 27:28Summary and key takeaways
~/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.