Skip to content

Commit 3b97fd7

Browse files
committed
Remove the initializeApplication action
1 parent 7435a88 commit 3b97fd7

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

ui/frontend/actions.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,7 @@ import {
3939
export type ThunkAction<T = void> = ReduxThunkAction<T, State, {}, Action>;
4040
export type SimpleThunkAction<T = void> = ReduxThunkAction<T, State, {}, AnyAction>;
4141

42-
const createAction = <T extends string, P extends {}>(type: T, props?: P) => (
43-
Object.assign({ type }, props)
44-
);
45-
46-
export enum ActionType {
47-
InitializeApplication = 'INITIALIZE_APPLICATION',
48-
}
49-
50-
export const initializeApplication = () => createAction(ActionType.InitializeApplication);
51-
42+
export enum ActionType {}
5243

5344
export const reExecuteWithBacktrace = (): ThunkAction => dispatch => {
5445
dispatch(changeBacktrace(Backtrace.Enabled));
@@ -175,7 +166,6 @@ export function showExample(code: string): ThunkAction {
175166
}
176167

177168
export type Action =
178-
| ReturnType<typeof initializeApplication>
179169
| ReturnType<typeof changeBacktrace>
180170
| ReturnType<typeof changeChannel>
181171
| ReturnType<typeof changeEditionRaw>

ui/frontend/configureStore.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { configureStore as reduxConfigureStore } from '@reduxjs/toolkit';
44
import { produce } from 'immer';
55
import type {} from 'redux-thunk/extend-redux';
66

7-
import { initializeApplication } from './actions';
87
import initializeLocalStorage from './local_storage';
98
import initializeSessionStorage from './session_storage';
109
import { websocketMiddleware } from './websocketMiddleware';
@@ -19,7 +18,7 @@ export default function configureStore(window: Window) {
1918
baseUrl,
2019
},
2120
};
22-
const initialAppState = reducer(undefined, initializeApplication());
21+
const initialAppState = reducer(undefined, { type: 'initializeForStore' });
2322

2423
const localStorage = initializeLocalStorage();
2524
const sessionStorage = initializeSessionStorage();

0 commit comments

Comments
 (0)