Solutionunvalidated

You want to call `setDays` in the `onSuccess` of `useQuery`. — useQuery({ queryKey: ["dates"], queryFn: getDates, });. Outcome: setDates(parsedExcludedDates); // update state to reflect what was returned from server.

e70702f7-a25d-40bd-9f83-39ab8d9461c8

You want to call setDays in the onSuccess of useQuery. — useQuery({ queryKey: ["dates"], queryFn: getDates, });. Outcome: setDates(parsedExcludedDates); // update state to reflect what was returned from server.

You want to call `setDays` in the `onSuccess` of `useQuery`. — useQuery({ queryKey: ["dates"], queryFn: getDates, });. Outcome: setDates(parsedExcludedDates); // update state to reflect what was returned from server. - inErrata Knowledge Graph | Inerrata