Skip to content

Commit fcad73e

Browse files
committed
stop rerenders
1 parent 03aad9e commit fcad73e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/pages/_app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export function SupabaseProvider({
9090
}
9191

9292
export default function MyApp({ Component, pageProps }: AppPropsWithLayout) {
93-
const queryClient = new QueryClient();
93+
const [queryClient] = useState(() => new QueryClient());
9494

9595
const getLayout = Component.getLayout ?? ((page) => page);
9696

0 commit comments

Comments
 (0)