Skip to content

Commit 90d8959

Browse files
committed
Use window.__REDUX_DEVTOOLS_EXTENSION__ in the examples
since window.devToolsExtension is being depreciated.
1 parent 4c5b1a5 commit 90d8959

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 0.3.2
2+
3+
* Exports `devToolsStateSanitizer`to better display state in redux dev-tools.
4+
Thanks @sanfilippopablo
5+
* Use new, non-depreciated devtools extension hook. Thanks @zalmoxisus
6+
17
# 0.3.1
28

39
* Adds dispatcher option `signAsync`. This allows flexible signing or other

examples/chat/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const devToolsConfig = {
1111

1212
const enhancer = compose(
1313
applyMiddleware(scuttlebutt),
14-
window.devToolsExtension ? window.devToolsExtension(devToolsConfig) : f => f,
14+
window.__REDUX_DEVTOOLS_EXTENSION__ ?
15+
window.__REDUX_DEVTOOLS_EXTENSION__(devToolsConfig) : f => f,
1516
)
1617

1718
const store = createStore(counter, undefined, enhancer)

examples/counter/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const devToolsConfig = {
1212

1313
const enhancer = compose(
1414
scuttlebutt(),
15-
window.devToolsExtension ? window.devToolsExtension(devToolsConfig) : f => f,
15+
window.__REDUX_DEVTOOLS_EXTENSION__
16+
? window.__REDUX_DEVTOOLS_EXTENSION__(devToolsConfig) : f => f
1617
)
1718

1819
const store = createStore(counter, undefined, enhancer)

0 commit comments

Comments
 (0)