3.2.1 • Published 3 years ago

@redux-dynostore/redux-subspace v3.2.1

Weekly downloads
427
License
BSD-3-Clause
Repository
github
Last release
3 years ago

@redux-dynostore/redux-subspace

Deprecated

This library is no longer being actively maintained.

IOOF has been slowly moving away from the ubiquitous use of Redux as a core piece of our micro-frontend architecture and have been actively replacing the usage of this library with more standard React and JavaScript patterns. Due to some technical constraints, we've also been unable to upgrade to the latest version of the library ourselves for quite some time now, further fuelling our desire to move away from this solution.

At this time, we will be ceasing all maintenance tasks and we recommend that you consider using an alternative library:

If you want to continue using this library, we encourage you to fork this repo and take over maintenance yourself.


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

Enhancers for integrating redux-dynostore with redux-subspace.

Enhancers

attachReducer

This enhancer is similar to the base attachReducer enhancer, except the reducer is namespaced with the dynamic component's identifier:

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

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

The same options can also be provided.

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 from '@redux-dynostore/react-redux-subspace'
import { dispatchAction } from '@redux-dynostore/redux-subspace'

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

3 years ago

3.2.0

3 years ago

3.2.0-alpha.1

3 years ago

3.2.0-alpha.0

3 years ago

3.1.1

3 years ago

3.1.1-alpha.0

4 years ago

3.1.0

4 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.1.0

6 years ago

1.0.0

6 years ago