Skip to content

Latest commit

 

History

History
 
 

redux-dynostore-redux-subspace

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

@redux-dynostore/redux-subspace

build status npm version npm downloads License: BSD-3-Clause

Enhancers for integrating redux-dynostore with redux-subspace.

Enhancers

attachReducer

import dynamic from '@redux-dynostore/react-redux'
import { attachReducer }  from '@redux-dynostore/redux-subspace'

export default dynamic('identifier', attachReducer(myReducer))(MyComponent)

dispatchAction

This enhancer is similar to the base dispatchAction enhancer, except the action is namespaces with the dynamic component's identifier:

import dynamic from '@redux-dynostore/react-redux'
import subspaced, { dispatchAction } from '@redux-dynostore/redux-subspace'

export default dynamic('identifier', subspaced(), dispatchAction({ type: 'MY_ACTION' }))(MyComponent)