feat: ui overhaul (#676)
This commit is contained in:
committed by
GitHub
parent
5c86462859
commit
66b81e9228
@ -14,4 +14,5 @@ const store = configureStore({
|
||||
|
||||
export { store };
|
||||
export type RootState = ReturnType<typeof store.getState>;
|
||||
export type AppStore = typeof store;
|
||||
export type AppDispatch = typeof store.dispatch;
|
||||
|
@ -52,8 +52,11 @@ export const waitUntilAction: Middleware<{}, any, Dispatch> = ({
|
||||
}
|
||||
|
||||
return (next: Dispatch<AnyAction>) =>
|
||||
(action: AnyAction): null | AnyAction => {
|
||||
if (action.type === WAIT_UNTIL_ACTION) {
|
||||
(action: AnyAction | undefined): null | AnyAction => {
|
||||
if (!action) {
|
||||
return null;
|
||||
}
|
||||
if (action?.type === WAIT_UNTIL_ACTION) {
|
||||
pending.push(action as WaitAction);
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user