mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 14:09:46 +03:00
fix #1382 - React Native - Hermes Engine doesn't handle for await
very well - comment TS errors that were inherited when forking the project
This commit is contained in:
parent
ecdcb2039f
commit
11328f1e3d
|
@ -276,6 +276,7 @@ class DevToolsEnhancer<S, A extends Action<unknown>> {
|
||||||
!this.actionSanitizer
|
!this.actionSanitizer
|
||||||
? action
|
? action
|
||||||
: this.actionSanitizer(
|
: this.actionSanitizer(
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||||
(action as PerformAction<A>).action,
|
(action as PerformAction<A>).action,
|
||||||
nextActionId! - 1
|
nextActionId! - 1
|
||||||
)
|
)
|
||||||
|
@ -549,6 +550,7 @@ class DevToolsEnhancer<S, A extends Action<unknown>> {
|
||||||
const nextActionId = liftedState.nextActionId;
|
const nextActionId = liftedState.nextActionId;
|
||||||
const liftedAction = liftedState.actionsById[nextActionId - 1];
|
const liftedAction = liftedState.actionsById[nextActionId - 1];
|
||||||
if (isFiltered(liftedAction.action, this.filters)) return;
|
if (isFiltered(liftedAction.action, this.filters)) return;
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||||
this.relay('ACTION', state, liftedAction, nextActionId);
|
this.relay('ACTION', state, liftedAction, nextActionId);
|
||||||
if (!this.isExcess && maxAge)
|
if (!this.isExcess && maxAge)
|
||||||
this.isExcess = liftedState.stagedActionIds.length >= maxAge;
|
this.isExcess = liftedState.stagedActionIds.length >= maxAge;
|
||||||
|
@ -597,6 +599,7 @@ class DevToolsEnhancer<S, A extends Action<unknown>> {
|
||||||
this.store.subscribe(() => {
|
this.store.subscribe(() => {
|
||||||
if (this.isMonitored)
|
if (this.isMonitored)
|
||||||
this.handleChange(
|
this.handleChange(
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||||
this.store.getState(),
|
this.store.getState(),
|
||||||
this.getLiftedStateRaw(),
|
this.getLiftedStateRaw(),
|
||||||
maxAge
|
maxAge
|
||||||
|
|
Loading…
Reference in New Issue
Block a user