Does anyone know if this
function CustomApp({ Component, pageProps }: AppProps<AdditionalAppProps>) {
const [queryClient] = React.useState(
() => new QueryClient({
defaultOptions: {
queries: {
refetchOnWindowFocus: false,
refetchInterval: false,
refetchIntervalInBackground: false,
},
},
})
);
Would create a new object in nextJS for each session? on a standard react app that object would be created each time a component renders. Wasn't sure for next as this is app component. Anyone know?