7

Why the fuck state management is so hard to get my head around? 😠😠😠

Comments
  • 1
    It's not hard. Just accept that it's the single truth.
  • 0
    You probably just have bad tools for managing state. Although sometimes the way things are explained is really bad.
  • 0
    Use state design pattern.
  • 1
    Takes a bit, then it clicks and it's so elegant and obvious you'll wonder why you never came up with it yourself. Kinda like calc.
  • 0
    I'm also having a hard time to get into it (using Angular). I fully understand why it's great and I can read it fine, but I haven't managed to write my own state yet. Whenever I give it a try, I'm overwhelmed by everything you have to set up. Actions, Effects, Reducers, I don't even know where to start. Also I haven't found a good example yet, where I could see how complex applications work, with pagination, filtering, sorting, optimizing. Sure, I can pull "Animals" from a "ZooState" or write an over-engineered counter, but this doesn't help me in the real world.
  • 1
    @24th-Dragon I missed ngrx while using angular. Right now I am learning Flutter, thought I would learn state management this time.
  • 1
    @sboesch That giant event/state loop is definitely pretty alien at first. It took me a few days to finally get it. But when you do, it'll just click and suddenly make so much sense. Keep at it!
  • 2
    @Root well, guess what, I like it now :) I have my head around it ♥️
  • 0
    @richangsharma That was fast 😊 Good job!
  • 0
    @Root i donno, may be flutter state management was to mess around :)
Add Comment