From 309903fe0fb37315002753ba36616a189d56cdda Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 4 Jul 2025 01:41:25 +1000 Subject: [PATCH] feat(ui): refetch gallery image names on reconnect Maybe fixes JP's issue (again) --- .../src/features/gallery/components/use-gallery-image-names.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/invokeai/frontend/web/src/features/gallery/components/use-gallery-image-names.ts b/invokeai/frontend/web/src/features/gallery/components/use-gallery-image-names.ts index e1ffe31190..07050bf58d 100644 --- a/invokeai/frontend/web/src/features/gallery/components/use-gallery-image-names.ts +++ b/invokeai/frontend/web/src/features/gallery/components/use-gallery-image-names.ts @@ -5,6 +5,7 @@ import { useGetImageNamesQuery } from 'services/api/endpoints/images'; import { useDebounce } from 'use-debounce'; const getImageNamesQueryOptions = { + refetchOnReconnect: true, selectFromResult: ({ currentData, isLoading, isFetching }) => ({ imageNames: currentData?.image_names ?? EMPTY_ARRAY, isLoading,