Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.42 KB

File metadata and controls

30 lines (20 loc) · 1.42 KB

@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)