mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 04:45:04 -05:00
perf(ui): select only loading state for enqueueBatch mutation
This commit is contained in:
@@ -28,7 +28,10 @@ export const useInvoke = () => {
|
||||
const enqueueGenerate = useEnqueueGenerate();
|
||||
const enqueueUpscaling = useEnqueueUpscaling();
|
||||
|
||||
const [_, { isLoading }] = useEnqueueBatchMutation(enqueueMutationFixedCacheKeyOptions);
|
||||
const [_, { isLoading }] = useEnqueueBatchMutation({
|
||||
...enqueueMutationFixedCacheKeyOptions,
|
||||
selectFromResult: ({ isLoading }) => ({ isLoading }),
|
||||
});
|
||||
|
||||
const enqueue = useCallback(
|
||||
async (prepend: boolean, isApiValidationRun: boolean) => {
|
||||
|
||||
Reference in New Issue
Block a user