Remove deprecated getMonitor method (#945)

This commit is contained in:
Nathan Bierema 2021-11-05 15:41:29 -04:00 committed by GitHub
parent de83aa1b45
commit b79886eb50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -105,9 +105,6 @@ export interface ConfigWithExpandedMaxAge {
action: A
) => boolean;
readonly latency?: number;
readonly getMonitor?: <S, A extends Action<unknown>>(
monitor: Monitor<S, A>
) => void;
readonly maxAge?:
| number
| (<S, A extends Action<unknown>>(
@ -237,17 +234,6 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
);
const monitor = new Monitor(relayState);
if (config.getMonitor) {
/* eslint-disable no-console */
console.warn(
"Redux DevTools extension's `getMonitor` parameter is deprecated and will be not " +
'supported in the next version, please remove it and just use ' +
'`__REDUX_DEVTOOLS_EXTENSION_COMPOSE__` instead: ' +
'https://github.com/zalmoxisus/redux-devtools-extension#12-advanced-store-setup'
);
/* eslint-enable no-console */
config.getMonitor(monitor);
}
function exportState() {
const liftedState = store.liftedStore.getState();