filmov
tv
Typing XState in Vue 3

Показать описание
In this follow-up tutorial on using XState for state management in Vue 3, we will create a more advance state machine using Typescript to define "typed states" while learning how to invoke asynchronous data fetching.
Typed states allow us to create a discriminated union of possible states and to "narrow" the the type of our XState context on a per-state basis.
Using typed states will greatly improve working with our state, context, and events inside of Vue templates by providing type hints and only allowing us to access fields of the context that pertain to any particular state.
I really enjoyed the developer experience of working with XState, Typescript, and Vue (and the Vite dev/build tool).
I hope you will, too!
Contents
00:00 Intro
3:00 Scaffold wit Vite
7:15 XState Inspect
11:14 Restaurant Data
13:09 Typing XState
18:50 XState Config
20:50 Invoking Async Methhod
28:15 Using State in Vue
33:30 Completed App Demo
Typed states allow us to create a discriminated union of possible states and to "narrow" the the type of our XState context on a per-state basis.
Using typed states will greatly improve working with our state, context, and events inside of Vue templates by providing type hints and only allowing us to access fields of the context that pertain to any particular state.
I really enjoyed the developer experience of working with XState, Typescript, and Vue (and the Vite dev/build tool).
I hope you will, too!
Contents
00:00 Intro
3:00 Scaffold wit Vite
7:15 XState Inspect
11:14 Restaurant Data
13:09 Typing XState
18:50 XState Config
20:50 Invoking Async Methhod
28:15 Using State in Vue
33:30 Completed App Demo
Typing XState in Vue 3
Getting Started with XState in Vue3
xState & Vue - add to cart form component
Frontend is Rocket Science - How to use xState in Vue 3 now!
XState as a state management solution for Vue by Maya Shavin: Vue.js Nation 2022
xState and state machines in VueJS - visualize and finally understand your UI flows
Integrating Form Libraries (in React/Vue/Svelte) with XState
Projects with XState by Maya Shavin: Vue.js Nation 2022
Visualize your State Management with XState by Maya Shavin: Vue.js Nation 2022
Visualize your State Management with XState | Maya Shavin | vueday 2022
Vue 3 Data Properties & Methods | TypeScript
XState Pizza Wizard!
XState Typing Suggestions
Discover XState Typegen and the Visual Editor
Finite State Machines in Vue 3 - Sarah Dayan
Vuex? No, it’s X(state)Vue for UI - MAYA SHAVIN, Vue.js Live 2021
This Library Makes State Management So Much Easier
13.- Writing a code editor (AST, Xstate) with audio cues: reading next word v1.
LIVE: CRUD! 7GUIs Challenge with XState | @keyframers 4.8.5
Design a polling state machine with XState
Visualizing & Controlling State with XState | Rating Form State Machine | @keyframers 3.14.1
Vue Basic Props with Eduardo San Martin Morote - TypeScript Type Challenges #213 [HARD]
Niezrozumiały i enigmatyczny kod front-endowy? Poznaj xState! - Przemek Pędziwiatr | #85 Talk4Devs
Modeling a voicemail widget with xState
Комментарии