mirror of
https://github.com/tomru/pfadi-bussle.git
synced 2026-03-03 06:27:11 +01:00
disable revalidate on swr
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user