mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
refetch model installs when a new model install starts
This commit is contained in:
parent
aae318425d
commit
328f160e88
@ -6,9 +6,17 @@ import {
|
|||||||
socketModelInstallComplete,
|
socketModelInstallComplete,
|
||||||
socketModelInstallDownloadProgress,
|
socketModelInstallDownloadProgress,
|
||||||
socketModelInstallError,
|
socketModelInstallError,
|
||||||
|
socketModelInstallStarted,
|
||||||
} from 'services/events/actions';
|
} from 'services/events/actions';
|
||||||
|
|
||||||
export const addModelInstallEventListener = (startAppListening: AppStartListening) => {
|
export const addModelInstallEventListener = (startAppListening: AppStartListening) => {
|
||||||
|
startAppListening({
|
||||||
|
actionCreator: socketModelInstallStarted,
|
||||||
|
effect: async (action, { dispatch }) => {
|
||||||
|
dispatch(api.util.invalidateTags([{ type: 'ModelInstalls' }]));
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
startAppListening({
|
startAppListening({
|
||||||
actionCreator: socketModelInstallDownloadProgress,
|
actionCreator: socketModelInstallDownloadProgress,
|
||||||
effect: async (action, { dispatch }) => {
|
effect: async (action, { dispatch }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user