Quick Start
Purpose#
Queue for Redux-Saga eliminates "rootSaga" boilerplate code. Saga Watchers no longer need to be imported and run by a "rootSaga".
Queue for Redux-Saga promotes code splitting. Saga Watchers can now be loaded "as needed", rather than up front.
What's Included#
Queue for Redux-Saga includes:
configureSagaStore(): Function that wraps "Redux ToolKit: configureStore".runSaga(): Function that runs a Saga as soon as the Redux Store is configured.setSagaRunner(): Function to be called after configuring the Redux Store.
Note: Not required if using configureSagaStore.getQueuedSagas(): Utility for use in Unit Tests.clearQueuedSagas(): Utility for use in Unit Tests.
Installation#
Queue for Redux-Saga is available as a package on NPM for use with a module bundler or in a Node application:
# NPMnpm install --save @vmw/queue-for-redux-saga
# Yarnyarn add @vmw/queue-for-redux-sagaQueue for Redux-Saga has two peer dependencies:
- redux-saga required - all versions are supported
- @reduxjs/toolkit optional - used for
configureSagaStore