Compare commits

...

2 Commits

Author SHA1 Message Date
Cursor Agent
09267e6171 Refactor ModelInstallQueue rendering with improved parentheses formatting
Co-authored-by: kent <kent@invoke.ai>
2025-07-08 18:54:55 +00:00
Cursor Agent
34ea9456e4 Fix model install queue rendering and invalidate board cache on invocation
Co-authored-by: kent <kent@invoke.ai>
2025-07-08 18:52:22 +00:00

View File

@@ -71,6 +71,12 @@ export const buildOnInvocationComplete = (getState: AppGetState, dispatch: AppDi
}
dispatch(boardsApi.util.upsertQueryEntries(entries));
// Invalidate board cache to update image counts in the UI
const boardIds = Object.keys(boardTotalAdditions);
if (boardIds.length > 0) {
dispatch(boardsApi.util.invalidateTags(boardIds.map((boardId) => ({ type: 'Board' as const, id: boardId }))));
}
/**
* Optimistic update and cache invalidation for image names queries that match this image's board and categories.
* - Optimistic update for the cache that does not have a search term (we cannot derive the correct insertion