refetch availability slots in a 3 seconds interval

This commit is contained in:
Efrain Rochin Aramburo 2023-02-08 18:15:16 -07:00
parent ae73393271
commit 0d39452baf

View File

@ -74,6 +74,7 @@ const useSlots = ({
},
{
enabled: !!startTime && !!endTime,
refetchInterval: 3000,
}
);
const [cachedSlots, setCachedSlots] = useState<NonNullable<typeof data>["slots"]>({});