mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-22 06:00:07 +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
|
||||
? action
|
||||
: this.actionSanitizer(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
(action as PerformAction<A>).action,
|
||||
nextActionId! - 1
|
||||
)
|
||||
|
@ -549,6 +550,7 @@ class DevToolsEnhancer<S, A extends Action<unknown>> {
|
|||
const nextActionId = liftedState.nextActionId;
|
||||
const liftedAction = liftedState.actionsById[nextActionId - 1];
|
||||
if (isFiltered(liftedAction.action, this.filters)) return;
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
this.relay('ACTION', state, liftedAction, nextActionId);
|
||||
if (!this.isExcess && maxAge)
|
||||
this.isExcess = liftedState.stagedActionIds.length >= maxAge;
|
||||
|
@ -597,6 +599,7 @@ class DevToolsEnhancer<S, A extends Action<unknown>> {
|
|||
this.store.subscribe(() => {
|
||||
if (this.isMonitored)
|
||||
this.handleChange(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
this.store.getState(),
|
||||
this.getLiftedStateRaw(),
|
||||
maxAge
|
||||
|
|
Loading…
Reference in New Issue
Block a user