lundegaard / redux-tools

💪 Maintaining large Redux applications with ease.
https://redux-tools.js.org
MIT License
34 stars 9 forks source link

add `withNamespaceProvider` to `namespaces-react` #141

Closed wafflepie closed 4 years ago

wafflepie commented 4 years ago

in order to make development of multi-instance components simpler, a withNamespaceProvider decorator should be implemented.

sig: ({ namespace: ?String, feature: ?String )} -> Component -> Component the decorator should also accept a namespace and feature props. options passed statically to the decorator have priority over props.