xState and state machines in VueJS - visualize and finally understand your UI flows

  Рет қаралды 4,770

cdruc

cdruc

Күн бұрын

Пікірлер: 20
@isaacsouza17
@isaacsouza17 4 жыл бұрын
State machines are great because you can "lock" the behaviour of the UI/application to the machine so you know exactly whats going to happens next. There are plenty of videos of xstate being used with React, but not many using Vue. Thanks a lot for this one.
@sangomalsa
@sangomalsa 4 жыл бұрын
I finished Sarah Dayan's talk about Finite State Machine with StateX in Vue 3 from VueConf Toronto. I really liked the idea, but didn't quite grasp how to use it, and found your video. Loved the explanation and your step-by-step introduction to this foreign concept (to me). Amazing job!
@TheMalni
@TheMalni 3 жыл бұрын
Thanks a lot for making this informative video Constantin, especially because it's a Vue version, your effort is much appreciated! :)
@CesarICAO
@CesarICAO 3 жыл бұрын
Awesome awesome awesome awesome, thanks for sharing this. Good explanation, now I need to put it into practice. I'm currently developing a stepper component and I'm investigating how to make use of XSTATE.
@cdruc
@cdruc 3 жыл бұрын
Glad it was helpful!
@pauln1274
@pauln1274 4 жыл бұрын
Awesome overview. Would love to see a Vue 3 example as well!
@cdruc
@cdruc 3 жыл бұрын
I honestly haven't got the chance to try out Vue 3 just yet - but I will at some point :)
@alextkd2003
@alextkd2003 3 жыл бұрын
awesome video, thansk, I was trying to do the same using typescript but I get few errors. Can you do this same example using typescript?
@almeralmazan
@almeralmazan 3 жыл бұрын
Thank you for this video tutorial with xstate using vuejs, it would be great if you could create like these with inertiajs soon. By the way you're inertiajs videos are awesome, and I did transition immediately. Any thoughts on creating a course with inertiajs?
@cdruc
@cdruc 3 жыл бұрын
Hey, thanks for watching! I am thinking on launching a full inertiajs course once v1 is tagged. It will be completely **free** for my e-mail subscribers - so if you’re interested, please signup to my newsletter here: tallpad.com/
@almeralmazan
@almeralmazan 3 жыл бұрын
@@cdruc That's awesome, already signed up. Can't wait for your inertiajs course.
@pascalraymond8424
@pascalraymond8424 4 жыл бұрын
I've watched many videos of David K Piano about XState, and it's good to see a concrete case, very well explained ! I understand the benefits of State Machines, but IMO the final result looks much more verbose and confusing than sticking to booleans... I have to practice :) It should be possible to keep the v-model and rely on methods to reduce our code in template ? I wish I see more videos like this... Thanks you very much !
@cdruc
@cdruc 4 жыл бұрын
You are correct! In most cases you can just go with booleans. xState shows its value when you are building complex UIs that have lots of different states you need to keep track of. Making the shift to xState can be a bit annoying at first but once you get used to it, you are flying - it makes it so much easier to reason about the flow of your components.
@iAmTheSquidThing
@iAmTheSquidThing 2 жыл бұрын
Yes, XState currently looks very verbose, like Vuex. Perhaps something like Pinia needs to come along and cut out the boilerplate.
@ChristianHohlfeld
@ChristianHohlfeld 2 жыл бұрын
thank you, great video!
@isaacsouza17
@isaacsouza17 4 жыл бұрын
Would be awesome to see you code some more complex example... This is a great starting point though. Do you have a repo with the code?
@cdruc
@cdruc 4 жыл бұрын
No repo, but I just added a code sandbox link in the description ☝️ As for a more complex example - I understand where you're coming from but the video would end up way too long for people to watch. This relatively simple one took me about 30mins to go through 😅
@bowaller6892
@bowaller6892 3 жыл бұрын
I was watch your inertia tutorials make a tour on your channel. I see something new and click to watch it. And I think the review of xstate is a best video for this year. WOW brilliant project. I didnt know that exist. Nice explanation bro. Like and subscribe for the nice content. When xstate is good to use? I think with big project will be a mess. Do you think can replace vuex or other state manager like vuex? (i dont remember the react state manager lol) Any tips, content or examples for more read except docs?
@isaacsouza17
@isaacsouza17 4 жыл бұрын
It may be a little verbose, but it definitely pays of in the long run, specially when the application grows
@cdruc
@cdruc 4 жыл бұрын
Exactly. The more complex your UI gets, the more value you get from state machines. 👌
xState & Vue - add to cart form component
26:16
cdruc
Рет қаралды 2,3 М.
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 46 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 34 МЛН
the balloon deflated while it was flying #tiktok
00:19
Анастасия Тарасова
Рет қаралды 35 МЛН
David Khourshid - Everything is an Actor
44:50
React Finland
Рет қаралды 10 М.
Finite State Machines in Vue 3 - Sarah Dayan
24:27
VueConf Toronto
Рет қаралды 8 М.
Getting Started with XState in Vue3
32:51
JacoboCode
Рет қаралды 2,1 М.
How to Program in Unity: State Machines Explained
18:56
iHeartGameDev
Рет қаралды 229 М.
Managing Complex UI with xState - Xavier Lozinguez
23:20
React NYC
Рет қаралды 7 М.
Building a search modal with HeadlessUI and TailwindCSS
31:04
CAN YOU DO THIS ?
00:23
STORROR
Рет қаралды 46 МЛН