~/talk

Effortless State Management in Nuxt 3 with Pinia: Practical Guide

Talkat Nuxt Nation 2023 · 2023-10-18..10-19· [vue, frontend-architecture]
slides:none on file

Practical Nuxt 3 setup: install with npm install pinia and register the Pinia module in nuxt.config.ts, then create stores with defineStore('balance') holding a typed balance object (amount + currency) populated by an API call; getters derive amount and actions replace Vuex mutations/actions. Components import via useBalanceStore and call a fetch action on mount. Recommends modular stores for large apps, notes built‑in useState suffices for tiny cases and migration from Vuex is feasible. no mutations, only actions

AI-written summary · about

  1. 0:00Introduction
  2. 0:25What is Pinia and why use it
  3. 3:04Installing Pinia in Nuxt 3
  4. 4:10Pinia store for API data
  5. 6:44Pinia stores in components
  6. 9:23Live demo: state management
  7. 10:05Pinia limitations
  8. 10:50Q&A: Pinia vs Nuxt state
  9. 12:14Q&A: Vuex still needed?
  10. 14:29Q&A: Fetching data: Pinia vs components
~/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.