4 ms·
I've built something similar to this in a large app with a lot of networking/async data updates... except these synchronous state mechanisms and parent to child
by ramoz 6y ago
I've built something similar to this in a large app with a lot of networking/async data updates... except these synchronous state mechanisms and parent to child pass-downs are still super annoying with React.
I ended up with a couple global queues (custom, async data pub/sub, similar to Rx) that each component could to subscribe to. A more reactive state management makes things a lot more simple. Only bare-minimum stateless children components (like buttons) are passed props with parent state.