3 ms·
I feel like every new architecture for flux lately comes at the cost of a lot of code complexity. The global state is becoming extremely common too, and it feel
by bpicolo 11y ago
I feel like every new architecture for flux lately comes at the cost of a lot of code complexity. The global state is becoming extremely common too, and it feels like a big anti-pattern. Not really a fan. I do like the more pure-flux Alt at the moment. I felt quickly put off from Redux after going through docs for a while.
- dustingetz 11y agodatabases are global state (The design pattern here is separation of code from state. OOP couples code (methods) and state (members))
- bpicolo 11y agoI realize that about databases, yes. I think the particular ways that frameworks have been trying to handle state are bad patterns. Not sure what would be better at the moment, but currently it's a mess.
- iLoch 11y agoOnly the states that can be global need to be global. It's not an anti pattern to manage state inside the component.