mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-13 21:25:04 -05:00
feat(ui): refetch gallery image names on reconnect
Maybe fixes JP's issue (again)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user