react

"mulling over state management stuff"
dominicm 2020-05-29T18:55:56.261800Z

I'm curious to know how people are scoping their state. My current codebase seems to have a lot of small scopes of state, and the responsibilities for that state is getting all mixed up throughout levels in the component hierarchy. My latest experiment involves making a page entirely stateless except for a top level page component which manages the state, fetches data and deals with cleaning it up, etc. I might swap that down to the high level widget if it makes sense. But I'd love to know what's being done elsewhere.