diff --git a/components/wizard/context/wizardStore.tsx b/components/wizard/context/wizardStore.tsx index dfb3d47..cca1e62 100644 --- a/components/wizard/context/wizardStore.tsx +++ b/components/wizard/context/wizardStore.tsx @@ -171,7 +171,12 @@ export default function WizardStore({ children }) { const [state, dispatch] = useReducer(reducer, initialState) const { data: daysBooked, error: daysBookedError } = useSWR( '/api/daysbooked', - fetcher + fetcher, + { + revalidateOnFocus: true, + revalidateOnReconnect: true, + focusThrottleInterval: 24 * 60 * 60 * 1000, + } ) useEffect(() => {