generalui / hooks-for-redux

modular redux - in half the code
MIT License
96 stars 13 forks source link

qualify reducers with storename #4

Closed spidergears closed 4 years ago

spidergears commented 4 years ago

this would allow to have same reducer name across different storeKeys.

I find this specially useful when I need a reducer for errors(setError) or for some other common task across all store keys.

Before this change if the store keys and reducers with same name, all those would be triggered with same payload.

shanebdavis commented 4 years ago

I like the idea! I’ll review it soon.

shanebdavis commented 4 years ago

Thanks for the idea! I ended up using a slightly simpler solution. Upgrade to v2 for the new, qualified action-type support.