redux-namespace
redux-namespace copied to clipboard
Namespace component state into a Redux store
Connected namespaces should be able to ingest the props of their components ``` es6 @ns.connect('someForm', (props) => props.id, (ns, props) => { ns.defaults({ value: props.value }) }) class SomeForm extends...
Say you have a todolist with data in your store about which ones are already checked. And you want to use redux-namespace to track new checks or unchecks. How can...
When assigning a value identical to the default value no update occurs because they are equal. This leads to a confusing bug where a value should be touched but is...
Add API page. What does `namespace.connect('foo')` return?
Select, or some new method should support return object partials, like lodash `pick`.
`create` receives the store to dispatch updates and return values selected from the namespace. This could have the unintended consequence of letting unrelated namespaces received updates out of band. In...
I'm having trouble understanding the value of this module. It may be valuable to provide a section like https://github.com/reactjs/react-router/blob/master/docs/Introduction.md#without-react-router to illustrate.
Provide a method to debounce changes to assigned fields ``` es6 this.props.debounce('fieldName', 200) ``` returns a referentially transparent function keyed off method name that is consistent across renders.
The primary use case of redux-namespace is transient data in forms. Validation of those values could done by defining a pipeline on that value or namespace.