Skip to content

These libraries provide tools for building dynamic Redux stores.

License

Notifications You must be signed in to change notification settings

Ethorsen/redux-dynostore

 
 

redux-dynostore

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

All Contributors PRs Welcome

Watch on GitHub Star on GitHub

These libraries provide tools for building dynamic Redux stores.

Usage

Make a dynostore, including the dynamic enhancers you need:

import dynostore, { dynamicReducers }  from '@redux-dynostore/core'
import { dynamicSagas } from '@redux-dynostore/redux-saga'

const sagaMiddleware = createSagaMiddleware()

const store = createStore(reducer, compose(
  applyMiddleware(sagaMiddleware),
  dynostore(
    dynamicReducers(),
    dynamicSagas(sagaMiddleware)
  )
))

Make a dynamic component:

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

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

Packages

FAQ

Whats with the name?

It's about adding dynamic features to redux stores… And it sounds like dinosaur. Raaaawwwwwrrrrrr!

Media

Contributors

Thanks goes to these wonderful people (emojis):


Michael Peyper

💬 🐛 💻 📖 💡 🤔 🚇 👀 📦 📢 ⚠️ 🔧

Jonathan Peyper

💬 🐛 💻 🤔 👀 ⚠️

Greg Miller

💡

Ethorsen

💻 📖 ⚠️

This project follows the all-contributors specification. Contributions of any kind are welcome!

About

These libraries provide tools for building dynamic Redux stores.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%