threepointone / redux-react-local

local component state via redux
370 stars 21 forks source link

Idea: Reducer local state for Sagas instead of global state #20

Open tomsdev opened 8 years ago

tomsdev commented 8 years ago

Hi @threepointone, thanks for your work on this library, I think it's an important step towards fractal components!

I had an interesting discussion with @tomkis1 in this issue about sagas and the problem that they access global state which breaks the fractability of a component. What's your opinion on that?

Personally, I think that a reusable/fractal component's sagas should only have access to its local reducer state (and maybe its children reducer states). I don't know how sagas are currently implemented, how hard do you think it would be to make such a change?

blocka commented 7 years ago

Check out redux-elm...I think it addresses your issue.