mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 08:30:02 +03:00
Fix rtk-query-monitor build
This commit is contained in:
parent
4d014de5aa
commit
e0d25d4087
|
@ -1,5 +1,5 @@
|
||||||
import { createSelector, Selector } from '@reduxjs/toolkit';
|
import { createSelector, Selector } from '@reduxjs/toolkit';
|
||||||
import { QueryStatus } from '@reduxjs/toolkit/dist/query';
|
import { QueryStatus } from '@reduxjs/toolkit/query';
|
||||||
import React, { ReactNode, PureComponent } from 'react';
|
import React, { ReactNode, PureComponent } from 'react';
|
||||||
import type { ShouldExpandNodeInitially } from 'react-json-tree';
|
import type { ShouldExpandNodeInitially } from 'react-json-tree';
|
||||||
import { QueryPreviewTabs, RtkResourceInfo, RTKStatusFlags } from '../types';
|
import { QueryPreviewTabs, RtkResourceInfo, RTKStatusFlags } from '../types';
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React, { PureComponent, createRef, ReactNode } from 'react';
|
import React, { PureComponent, createRef, ReactNode } from 'react';
|
||||||
import type { AnyAction, Dispatch, Action } from '@reduxjs/toolkit';
|
import type { Dispatch, Action } from '@reduxjs/toolkit';
|
||||||
import type { LiftedAction, LiftedState } from '@redux-devtools/core';
|
import type { LiftedAction, LiftedState } from '@redux-devtools/core';
|
||||||
import {
|
import {
|
||||||
QueryFormValues,
|
QueryFormValues,
|
||||||
|
@ -96,15 +96,33 @@ class RtkQueryInspector<S, A extends Action<string>> extends PureComponent<
|
||||||
}
|
}
|
||||||
|
|
||||||
handleQueryFormValuesChange = (values: Partial<QueryFormValues>): void => {
|
handleQueryFormValuesChange = (values: Partial<QueryFormValues>): void => {
|
||||||
this.props.dispatch(changeQueryFormValues(values) as AnyAction);
|
this.props.dispatch(
|
||||||
|
changeQueryFormValues(values) as unknown as LiftedAction<
|
||||||
|
S,
|
||||||
|
A,
|
||||||
|
RtkQueryMonitorState
|
||||||
|
>,
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
handleSelectQuery = (queryInfo: RtkResourceInfo): void => {
|
handleSelectQuery = (queryInfo: RtkResourceInfo): void => {
|
||||||
this.props.dispatch(selectQueryKey(queryInfo) as AnyAction);
|
this.props.dispatch(
|
||||||
|
selectQueryKey(queryInfo) as unknown as LiftedAction<
|
||||||
|
S,
|
||||||
|
A,
|
||||||
|
RtkQueryMonitorState
|
||||||
|
>,
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
handleTabChange = (tab: QueryPreviewTabs): void => {
|
handleTabChange = (tab: QueryPreviewTabs): void => {
|
||||||
this.props.dispatch(selectedPreviewTab(tab) as AnyAction);
|
this.props.dispatch(
|
||||||
|
selectedPreviewTab(tab) as unknown as LiftedAction<
|
||||||
|
S,
|
||||||
|
A,
|
||||||
|
RtkQueryMonitorState
|
||||||
|
>,
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
render(): ReactNode {
|
render(): ReactNode {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user