Skip to content

Commit 0757dac

Browse files
committed
Example of using window.devToolsExtension.updateStore
Related to #133.
1 parent bf3e3ae commit 0757dac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/saga-counter/src/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ const store = createStore(
2222
)
2323
sagaMiddleware.run(rootSaga)
2424

25+
if (window.devToolsExtension) window.devToolsExtension.updateStore(store)
26+
2527
const action = type => store.dispatch({type})
2628

2729
function render() {

0 commit comments

Comments
 (0)