用于Redux-Saga Devtools的Chrome扩展程序
用于Redux-Saga Devtools的Chrome扩展程序
JavaScript 其它杂项
共88Star
详细介绍
Redux-Saga DevTools Chrome Extension
Chrome Extension for Redux-Saga Devtools
Usage
- Install the extension from the Chrome marketplace
- When creating your saga middlware, pass the extension monitor to the middleware as an option
const monitor = window["__SAGA_MONITOR_EXTENSION__"]
const sagaMiddleware = createSagaMiddleware({ sagaMonitor: monitor })
const store = createStore(
rootReducer,
applyMiddleware(sagaMiddleware)
)
sagaMiddleware.run(rootSaga)
- Open the Chrome DevTools and inspect your Sagas