Skip to content

Commit bb18a7c

Browse files
committed
Deprecate undocumented getMonitor parameter
1 parent 0ce079e commit bb18a7c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/browser/extension/inject/pageScript.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ const devToolsExtension = function(reducer, preloadedState, config) {
6464
}
6565

6666
const monitor = new Monitor(relayState);
67-
if (config.getMonitor) config.getMonitor(monitor);
67+
if (config.getMonitor) {
68+
/* eslint-disable no-console */
69+
console.warn('Redux DevTools extension\'s `getMonitor` parameter is deprecated and will be not ' +
70+
'supported in the next version, please remove it and just use ' +
71+
'`__REDUX_DEVTOOLS_EXTENSION_COMPOSE__` instead: ' +
72+
'https://github.com/zalmoxisus/redux-devtools-extension#12-advanced-store-setup');
73+
/* eslint-enable no-console */
74+
config.getMonitor(monitor);
75+
}
6876

6977
function exportState() {
7078
const liftedState = store.liftedStore.getState();

0 commit comments

Comments
 (0)