disable revalidate on swr

This commit is contained in:
Thomas Ruoff
2020-11-01 22:22:59 +01:00
parent 28035f9516
commit 92324fc45f

View File

@@ -171,7 +171,12 @@ export default function WizardStore({ children }) {
const [state, dispatch] = useReducer(reducer, initialState)
const { data: daysBooked, error: daysBookedError } = useSWR<string[], Error>(
'/api/daysbooked',
fetcher
fetcher,
{
revalidateOnFocus: true,
revalidateOnReconnect: true,
focusThrottleInterval: 24 * 60 * 60 * 1000,
}
)
useEffect(() => {