diff --git a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketConnected.ts b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketConnected.ts index 88b9b3b5d9..7061ff20b0 100644 --- a/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketConnected.ts +++ b/invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners/socketio/socketConnected.ts @@ -1,7 +1,5 @@ import { logger } from 'app/logging/logger'; -import { isInitializedChanged } from 'features/system/store/systemSlice'; import { size } from 'lodash-es'; -import { api } from 'services/api'; import { receivedOpenAPISchema } from 'services/api/thunks/schema'; import { appSocketConnected, socketConnected } from 'services/events/actions'; @@ -15,7 +13,7 @@ export const addSocketConnectedEventListener = () => { log.debug('Connected'); - const { nodeTemplates, config, system } = getState(); + const { nodeTemplates, config } = getState(); const { disabledTabs } = config; @@ -23,13 +21,6 @@ export const addSocketConnectedEventListener = () => { dispatch(receivedOpenAPISchema()); } - if (system.isInitialized) { - // only reset the query caches if this connect event is a *reconnect* event - dispatch(api.util.resetApiState()); - } else { - dispatch(isInitializedChanged(true)); - } - // pass along the socket event as an application action dispatch(appSocketConnected(action.payload)); }, diff --git a/invokeai/frontend/web/src/features/system/store/systemPersistDenylist.ts b/invokeai/frontend/web/src/features/system/store/systemPersistDenylist.ts index 16e06dbb01..7e838b0328 100644 --- a/invokeai/frontend/web/src/features/system/store/systemPersistDenylist.ts +++ b/invokeai/frontend/web/src/features/system/store/systemPersistDenylist.ts @@ -1,7 +1,6 @@ import type { SystemState } from './types'; export const systemPersistDenylist: (keyof SystemState)[] = [ - 'isInitialized', 'isConnected', 'denoiseProgress', 'status', diff --git a/invokeai/frontend/web/src/features/system/store/systemSlice.ts b/invokeai/frontend/web/src/features/system/store/systemSlice.ts index 57ef46373e..5d1fb32d71 100644 --- a/invokeai/frontend/web/src/features/system/store/systemSlice.ts +++ b/invokeai/frontend/web/src/features/system/store/systemSlice.ts @@ -25,7 +25,6 @@ import { import type { Language, SystemState } from './types'; export const initialSystemState: SystemState = { - isInitialized: false, isConnected: false, shouldConfirmOnDelete: true, enableImageDebugging: false, @@ -83,10 +82,7 @@ export const systemSlice = createSlice({ action: PayloadAction ) { state.shouldEnableInformationalPopovers = action.payload; - }, - isInitializedChanged(state, action: PayloadAction) { - state.isInitialized = action.payload; - }, + } }, extraReducers(builder) { /** @@ -205,7 +201,6 @@ export const { shouldUseNSFWCheckerChanged, shouldUseWatermarkerChanged, setShouldEnableInformationalPopovers, - isInitializedChanged, } = systemSlice.actions; export default systemSlice.reducer; diff --git a/invokeai/frontend/web/src/features/system/store/types.ts b/invokeai/frontend/web/src/features/system/store/types.ts index f60e37f3d8..67c776aa9a 100644 --- a/invokeai/frontend/web/src/features/system/store/types.ts +++ b/invokeai/frontend/web/src/features/system/store/types.ts @@ -43,7 +43,6 @@ export const isLanguage = (v: unknown): v is Language => zLanguage.safeParse(v).success; export interface SystemState { - isInitialized: boolean; isConnected: boolean; shouldConfirmOnDelete: boolean; enableImageDebugging: boolean;