File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
invokeai/frontend/web/src Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { useGlobalModifiersInit } from '@invoke-ai/ui-library' ;
2
+ import { setupListeners } from '@reduxjs/toolkit/query' ;
2
3
import type { StudioInitAction } from 'app/hooks/useStudioInitAction' ;
3
4
import { useStudioInitAction } from 'app/hooks/useStudioInitAction' ;
4
5
import { useSyncQueueStatus } from 'app/hooks/useSyncQueueStatus' ;
@@ -62,6 +63,10 @@ export const GlobalHookIsolator = memo(
62
63
dispatch ( appStarted ( ) ) ;
63
64
} , [ dispatch ] ) ;
64
65
66
+ useEffect ( ( ) => {
67
+ return setupListeners ( dispatch ) ;
68
+ } , [ dispatch ] ) ;
69
+
65
70
useStudioInitAction ( studioInitAction ) ;
66
71
useStarterModelsToast ( ) ;
67
72
useSyncQueueStatus ( ) ;
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ export const api = customCreateApi({
112
112
endpoints : ( ) => ( { } ) ,
113
113
invalidationBehavior : 'immediately' ,
114
114
serializeQueryArgs : stableHash ,
115
+ refetchOnReconnect : true ,
115
116
} ) ;
116
117
117
118
function getCircularReplacer ( ) {
You can’t perform that action at this time.
0 commit comments