Hi everyone
πŸ‘‹

Hi, I'm
Robi

robipop.dev

Co-Founder & Director of Software

What you should expect from this talk

This talk comes as a lesson I've learned during the development of latest apps.

Everything is from my personal experience and the remarks I'll make are from my point of view.

Especially the ones regarding Redux

This will be against TDD principles.

Twitter Driven Development

Do not expect a PowerPoint

But, do expect some Live Coding

So...
(Wh)Y Manage your State?Β 

But we have local state

πŸ‘¨β€πŸ’»

But we have redux helicopter 69

I just want to get some data

  • actions
  • reducers
  • utils
  • opearations (re-ducks architecture)
  • types
  • dispatch
  • thunks
  • sagas

Other options out there

Xstate

JavaScript and TypeScript finite state machines and statecharts for the modern web.

Finite-state machine

A finite state machine is a mathematical model of computation that describes the behavior of a system that can be in only one state at any given time.Β 

Β For example, let's say you can be represented by a state machine with a finite number (2) of states: asleep or awake. At any given time, you're either asleep or awake. It is impossible for you to be both asleep and awake at the same time, and it is impossible for you to be neither asleep nor awake.

  • A finite number of states

  • A finite number of events

  • An initial state

  • A transition function that determines the next state given the current state and event

  • A (possibly empty) set of final states

State charts

πŸ‘¨β€πŸ’»

https://github.com/robipop22/y-x-state

(Wh)Y manage your state? Xstate

By Robert Pop

(Wh)Y manage your state? Xstate

Why you should a state management for your app and why Xstate is a good choice for this.

  • 183