home.social

#xstate — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #xstate, aggregated by home.social.

  1. Just launched Unfortunate Transitions 👻

    A little puzzle game where you're a poltergeist eliminating your cheerful housemate through indirect means. Built with #XState code visible in-game.

    ➡️ unfortunate-transitions.sandro

  2. HDD - Happiness Driven Development.

    Over past few days I've been struggling to try to wedge #xstate library into my next project. I love the idea of state machines, I adore the tooling, I would love to see it everywhere for it's reasoning and academic cleanness.

    But I decided to cut it out from the project and just use pure #EmberJS (tracked + services + ember-concurrency).

    Resons? Selfish, really.
    - EmberJS already has native tooling to solve vast amount of cases in way more elegant manner that xstate can.
    - The interweaving of Ember & xstate just does not have great DX and I ended up writing tons of obscure code to do trivial mutations or derived state checks.
    - While the xstate visual machine editor is cool, I find it lacking / buggy, so I end up going back to the code, which is, frankly, not easy to read.
    - It might be the learning curve, but really what I can write in 5mins in pure EmberJS takes me hours in xstate (counting in fighting with TS gods).

    Overall give xstate a try. State Machines feel like the correct way to go for things. But for me the DX of xstate is not there. I chose high HDD.

  3. #XState looks like a very cool tool for handling complex state in react apps with a visual editor to help build and understand the state transitions, setup and exit side effects. xstate.js.org/
    Only for VSCode unfortunately.
    2/3

  4. jotai-xstate v0.5.0 has been released! It finally migrates to XState V5. Huge thanks to the contributors!

    Now, we may need to update the docs and examples. Would anyone like to volunteer?

    github.com/jotaijs/jotai-xstate

  5. 🆕 Don’t put off migrating from XState v4 to v5 any longer!

    Kevin has created a detailed step-by-step guide to walk you through migrating your machines from beginning to end:

    stately.ai/blog/2024-02-02-mig

    #XState #XStateV4 #XStateV5 #JavaScript #stateMachines

  6. - What did we tell you?
    - To not build "state machines by hand"...
    - And what did you do?
    - I build a state machine by hand ...
    - And what is the outcome?
    - Pain and frustration in trying to hunt down hard to debug edge cases...
    - So what do you do next time?
    - If it's really really small can I ...
    - No! No! Nooooo!

    #xstate #stateMachines #sourceCode #devsLife

  7. #XState (the library) and #Stately (the company) are two things I'm very excited about these days. State machines have so many uses: front end, back end, workflows, parsers...

    The stuff Stately is doing make them easy to build and understand. And XState has an extremely small footprint at runtime.

    Anyway, their office hours are on now: youtube.com/watch?v=MpbbgOQ9WA

  8. C’est parti pour le meetup Front-end & Beers ! On commence avec la conférence d’Antoine Richard qui nous parle de #XState.

  9. I've started a little #typescript experiment library (unpublished as of right now) to develop a better, more strongly typed state machine library than #xstate. It's not really in a usable state right now--without context it's pre-MVP--but it's already quite promising imo.

    blog.martijnarts.com/p/e48ad6b

  10. 🎉 New episode of JS Party!

    Amal, @nicknisi & special guest @laura geek out over the remarkable growth and evolution of the #XState project and its team in recent years 🥳

    Laura also tells everyone about Stately, a SaaS platform that uses AI to create seamless state management solutions compatible with various tools like XState, #Redux & #zustand 💽

    #javascript #typescript #podcast

    🎧 jsparty.fm/303

  11. ⏮️ Watch David as he makes an XState V5 cheatsheet for our docs. Featuring plenty of examples and some extra time on Vue compatibility…

    youtube.com/watch?v=nR-t_PZj6Y

    #XState #XStateV5 #Vue

  12. @b0rk xstate.js.org/viz/ is an interactive playground for statecharts/state machines. #xstate

  13. Playing with #XState for a take-home test and found an interesting issue related to testing:

    The official docs just mention "send the events and eventually the test will pass", but actually it won't. You need to manually wait for the state to change and then trigger the successive events, otherwise it won't progress. Which goes against their own beliefs, so I wonder if that's a bug.

    Published an example here: gist.github.com/marcoacierno/2

  14. Implemented a (#xstate compatible) custom state machine+reducer combination for a #React app and finally it worked out.

    1st app (~1 year ago) -> complete failure, I deleted everything

    2nd app (~6 months ago) -> codebase got more confusing and harder to maintain but running

    3rd app -> I could solve exactly the issues I hoped I could, the app runs much better and its easier to improve & add new features 🥳
    Should also be easy to reuse when another app could benefit from it.

  15. #XState + #EmberJS = ❤️

    ember-statechart-component makes statecharts are first class citizen.

    Statecharts *are* components.

    A totally transparent integration 🥳

    Supports Glint to!

    #TypeScript #JavaScript #WebDev

  16. Refactoring some of my old code and realising how many times did I re-invent what #xstate gives me for free.
    Very much recommended for every developer out there: xstate.js.org/

  17. Spent an hack day building a serverless demo. We've had an approximation of this architecture in production at OVO for a while now, excited we can finally open source a part of our implementation.

    It allows you to write state machine based serverless apps in :typescript:

    Code coming soon 👀

  18. I just finished implementing a voice chat with and it was fantastic. I'll write a blog post about it soon.

  19. - What did we tell you?
    - To not build "state machines by hand"...
    - And what did you do?
    - I build a state machine by hand ...
    - And what is the outcome?
    - Pain and frustration in trying to hunt down hard to debug edge cases...
    - So what do you do next time?
    - If it's really really small can I ...
    - No! No! Nooooo!

    #xstate #stateMachines #sourceCode #devsLife

  20. - What did we tell you?
    - To not build "state machines by hand"...
    - And what did you do?
    - I build a state machine by hand ...
    - And what is the outcome?
    - Pain and frustration in trying to hunt down hard to debug edge cases...
    - So what do you do next time?
    - If it's really really small can I ...
    - No! No! Nooooo!

    #xstate #stateMachines #sourceCode #devsLife

  21. - What did we tell you?
    - To not build "state machines by hand"...
    - And what did you do?
    - I build a state machine by hand ...
    - And what is the outcome?
    - Pain and frustration in trying to hunt down hard to debug edge cases...
    - So what do you do next time?
    - If it's really really small can I ...
    - No! No! Nooooo!

    #xstate #stateMachines #sourceCode #devsLife

  22. - What did we tell you?
    - To not build "state machines by hand"...
    - And what did you do?
    - I build a state machine by hand ...
    - And what is the outcome?
    - Pain and frustration in trying to hunt down hard to debug edge cases...
    - So what do you do next time?
    - If it's really really small can I ...
    - No! No! Nooooo!

    #xstate #stateMachines #sourceCode #devsLife

  23. ✨ New (experimental) feature alert!

    Coming from another state manager? Import your Redux or Zustand logic into the Stately editor, and we’ll handle the rest.

    More libraries, DSLs, and languages to come!

    🪄 Try it now at state.new!

    #stately #stateMachines #visualization #appLogic #stateManagement #redux #zustand #xstate

  24. ✨ New (experimental) feature alert!

    Coming from another state manager? Import your Redux or Zustand logic into the Stately editor, and we’ll handle the rest.

    More libraries, DSLs, and languages to come!

    🪄 Try it now at state.new!

    #stately #stateMachines #visualization #appLogic #stateManagement #redux #zustand #xstate

  25. ✨ New (experimental) feature alert!

    Coming from another state manager? Import your Redux or Zustand logic into the Stately editor, and we’ll handle the rest.

    More libraries, DSLs, and languages to come!

    🪄 Try it now at state.new!

    #stately #stateMachines #visualization #appLogic #stateManagement #redux #zustand #xstate

  26. 🆕 Don’t put off migrating from XState v4 to v5 any longer!

    Kevin has created a detailed step-by-step guide to walk you through migrating your machines from beginning to end:

    stately.ai/blog/2024-02-02-mig

    #XState #XStateV4 #XStateV5 #JavaScript #stateMachines

  27. 🆕 Don’t put off migrating from XState v4 to v5 any longer!

    Kevin has created a detailed step-by-step guide to walk you through migrating your machines from beginning to end:

    stately.ai/blog/2024-02-02-mig

    #XState #XStateV4 #XStateV5 #JavaScript #stateMachines

  28. 🆕 Don’t put off migrating from XState v4 to v5 any longer!

    Kevin has created a detailed step-by-step guide to walk you through migrating your machines from beginning to end:

    stately.ai/blog/2024-02-02-mig

    #XState #XStateV4 #XStateV5 #JavaScript #stateMachines

  29. 🆕 Don’t put off migrating from XState v4 to v5 any longer!

    Kevin has created a detailed step-by-step guide to walk you through migrating your machines from beginning to end:

    stately.ai/blog/2024-02-02-mig

    #XState #XStateV4 #XStateV5 #JavaScript #stateMachines

  30. 🚚 Looking to migrate from XState V4 to XState V5? We’ve got a few resources to get you started…

    ▶️ Watch our webinar where David takes you through migrating a V4 project:
    youtube.com/watch?v=s-nqoIbIZa

    📖 And check out our docs for a list of breaking changes and FAQ… stately.ai/docs/xstate-v5/migr

    #stateManagement #XState #migration #XStateV4 #XStateV5

  31. 🚚 Looking to migrate from XState V4 to XState V5? We’ve got a few resources to get you started…

    ▶️ Watch our webinar where David takes you through migrating a V4 project:
    youtube.com/watch?v=s-nqoIbIZa

    📖 And check out our docs for a list of breaking changes and FAQ… stately.ai/docs/xstate-v5/migr

    #stateManagement #XState #migration #XStateV4 #XStateV5

  32. 👋 Do you and your team need help with Stately or XState? Our team now offers services to help you get up and running quickly.

    Check out our services and contact us to find out more: stately.ai/pricing#services

    #stately #XState #XStateV5 #stateMachines #diagramming #visualization

  33. 👋 Do you and your team need help with Stately or XState? Our team now offers services to help you get up and running quickly.

    Check out our services and contact us to find out more: stately.ai/pricing#services

    #stately #XState #XStateV5 #stateMachines #diagramming #visualization

  34. 👋 Do you and your team need help with Stately or XState? Our team now offers services to help you get up and running quickly.

    Check out our services and contact us to find out more: stately.ai/pricing#services

    #stately #XState #XStateV5 #stateMachines #diagramming #visualization

  35. ⏮️ Did you miss our XState: Exploring actors live stream last week? Catch up below.

    Want us to do more live streams around XState and Stately? Let us know which topics are most valuable to you!

    youtube.com/watch?v=Rj7lOvDwcY

    #XState #actors #actorModel #XStateV5 #Stately #visualization #diagramming #sequenceDiagrams

  36. ⏮️ Did you miss our XState: Exploring actors live stream last week? Catch up below.

    Want us to do more live streams around XState and Stately? Let us know which topics are most valuable to you!

    youtube.com/watch?v=Rj7lOvDwcY

    #XState #actors #actorModel #XStateV5 #Stately #visualization #diagramming #sequenceDiagrams

  37. ⏮️ Did you miss our XState: Exploring actors live stream last week? Catch up below.

    Want us to do more live streams around XState and Stately? Let us know which topics are most valuable to you!

    youtube.com/watch?v=Rj7lOvDwcY

    #XState #actors #actorModel #XStateV5 #Stately #visualization #diagramming #sequenceDiagrams

  38. ✨ XState v5 has been out for 2 weeks, but did you know we’ve also updated the integration packages for React, Vue, and Svelte?

    💙 XState React v4.0
    💚 XState Vue v3.0
    🧡 XState Svelte v3.0

    stately.ai/docs/category/xstat

    📦 Check out the templates: github.com/statelyai/xstate?ta

    🎉 Read all about the XState v5 release in our blog post:
    stately.ai/blog/2023-12-01-xst

    #XState #XStateV5 #React #Vue #Svelte

  39. ✨ XState v5 has been out for 2 weeks, but did you know we’ve also updated the integration packages for React, Vue, and Svelte?

    💙 XState React v4.0
    💚 XState Vue v3.0
    🧡 XState Svelte v3.0

    stately.ai/docs/category/xstat

    📦 Check out the templates: github.com/statelyai/xstate?ta

    🎉 Read all about the XState v5 release in our blog post:
    stately.ai/blog/2023-12-01-xst

    #XState #XStateV5 #React #Vue #Svelte

  40. ✨ XState v5 has been out for 2 weeks, but did you know we’ve also updated the integration packages for React, Vue, and Svelte?

    💙 XState React v4.0
    💚 XState Vue v3.0
    🧡 XState Svelte v3.0

    stately.ai/docs/category/xstat

    📦 Check out the templates: github.com/statelyai/xstate?ta

    🎉 Read all about the XState v5 release in our blog post:
    stately.ai/blog/2023-12-01-xst

    #XState #XStateV5 #React #Vue #Svelte

  41. ▶️ Check out David on Learn with Jason’s “4 Web Devs, 1 App Idea.”

    Each dev built a leaderboard app, and more than one used a state machine!

    m.youtube.com/watch?v=zR8dUhLP
    #stately #stateMachines #statecharts #diagramming #visualization #XState #XStateV5

  42. ▶️ Check out David on Learn with Jason’s “4 Web Devs, 1 App Idea.”

    Each dev built a leaderboard app, and more than one used a state machine!

    m.youtube.com/watch?v=zR8dUhLP
    #stately #stateMachines #statecharts #diagramming #visualization #XState #XStateV5