diff --git a/packages/pl-hooks/lib/hooks/instance/use-instance.ts b/packages/pl-hooks/lib/hooks/instance/use-instance.ts index b39752145..1348b3396 100644 --- a/packages/pl-hooks/lib/hooks/instance/use-instance.ts +++ b/packages/pl-hooks/lib/hooks/instance/use-instance.ts @@ -5,7 +5,7 @@ import * as v from 'valibot'; import { usePlHooksApiClient } from 'pl-hooks/contexts/api-client'; import { usePlHooksQueryClient } from 'pl-hooks/contexts/query-client'; -const placeholderData = v.parse(instanceSchema, {}); +const initialData = v.parse(instanceSchema, {}); const useInstance = () => { const { client } = usePlHooksApiClient(); @@ -14,7 +14,8 @@ const useInstance = () => { return useQuery({ queryKey: ['instance'], queryFn: client.instance.getInstance, - placeholderData, + initialData, + initialDataUpdatedAt: -1, }, queryClient); };