These libraries provide tools for building dynamic Redux stores.
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)
@redux-dynostore/core
: The core package for redux-dynostore@redux-dynostore/react-redux
: React bindings to simplify usage in react projects@redux-dynostore/redux-saga
: Dynamic enhancer to run sagas@redux-dynostore/redux-subspace
: redux-subspace extensions@redux-dynostore/react-redux-subspace
: react-redux-subspace extentions@redux-dynostore/redux-subspace-saga
: redux-subspace-saga extensions
Whats with the name?
It's about adding dynamic features to redux stores… And it sounds like dinosaur. Raaaawwwwwrrrrrr!
- From Monolith to Micro-Frontends - Web Developer 42˚ (Michael Peyper)
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!