mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Fix
This commit is contained in:
parent
86c270fa91
commit
425c78b8fc
|
@ -334,12 +334,16 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
|
||||||
const result = evalAction(action, actionCreators);
|
const result = evalAction(action, actionCreators);
|
||||||
(store.initialDispatch || store.dispatch)(result);
|
(store.initialDispatch || store.dispatch)(result);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
toContentScript({
|
toContentScript(
|
||||||
type: 'ERROR',
|
{
|
||||||
payload: e.message,
|
type: 'ERROR',
|
||||||
source,
|
payload: e.message,
|
||||||
instanceId,
|
source,
|
||||||
});
|
instanceId,
|
||||||
|
},
|
||||||
|
serializeState,
|
||||||
|
serializeAction
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -350,12 +354,16 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
|
||||||
if (!nextLiftedState) return;
|
if (!nextLiftedState) return;
|
||||||
store.liftedStore.dispatch({ type: 'IMPORT_STATE', ...nextLiftedState });
|
store.liftedStore.dispatch({ type: 'IMPORT_STATE', ...nextLiftedState });
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
toContentScript({
|
toContentScript(
|
||||||
type: 'ERROR',
|
{
|
||||||
payload: e.message,
|
type: 'ERROR',
|
||||||
source,
|
payload: e.message,
|
||||||
instanceId,
|
source,
|
||||||
});
|
instanceId,
|
||||||
|
},
|
||||||
|
serializeState,
|
||||||
|
serializeAction
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -416,12 +424,16 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
|
||||||
});
|
});
|
||||||
|
|
||||||
if (reportId) {
|
if (reportId) {
|
||||||
toContentScript({
|
toContentScript(
|
||||||
type: 'GET_REPORT',
|
{
|
||||||
payload: reportId,
|
type: 'GET_REPORT',
|
||||||
source,
|
payload: reportId,
|
||||||
instanceId,
|
source,
|
||||||
});
|
instanceId,
|
||||||
|
},
|
||||||
|
serializeState,
|
||||||
|
serializeAction
|
||||||
|
);
|
||||||
reportId = null;
|
reportId = null;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -430,12 +442,16 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
|
||||||
relayAction.cancel();
|
relayAction.cancel();
|
||||||
relayState.cancel();
|
relayState.cancel();
|
||||||
if (!message.failed) {
|
if (!message.failed) {
|
||||||
toContentScript({
|
toContentScript(
|
||||||
type: 'STOP',
|
{
|
||||||
payload: undefined,
|
type: 'STOP',
|
||||||
source,
|
payload: undefined,
|
||||||
instanceId,
|
source,
|
||||||
});
|
instanceId,
|
||||||
|
},
|
||||||
|
serializeState,
|
||||||
|
serializeAction
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -486,12 +502,16 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
toContentScript({
|
toContentScript(
|
||||||
type: 'INIT_INSTANCE',
|
{
|
||||||
payload: undefined,
|
type: 'INIT_INSTANCE',
|
||||||
source,
|
payload: undefined,
|
||||||
instanceId,
|
source,
|
||||||
});
|
instanceId,
|
||||||
|
},
|
||||||
|
serializeState,
|
||||||
|
serializeAction
|
||||||
|
);
|
||||||
store.subscribe(handleChange);
|
store.subscribe(handleChange);
|
||||||
|
|
||||||
if (typeof reportId === 'undefined') {
|
if (typeof reportId === 'undefined') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user