TanStackT
TanStack2y ago
3 replies
moderate-tomato

beforeload with async does not seem to wait or creates infinite rerenders

I create a minimal reproduce ... its the context.hasAccessTo that tries to wait for result but dont get anywhere...

https://stackblitz.com/edit/vitejs-vite-uw5gth?file=src%2FApp.tsx

I have an app with 156 routes - upgrading from "1.31.6" --> "1.36.3" this ends up with infinte rerender issue ... is it known issue? are there any workarounds?
StackBlitzMikkel Thorbjørn Andersen
A Vite React TypeScript project based on @tanstack/react-query, @tanstack/react-query-devtools, @tanstack/react-router, @tanstack/router-devtools, @tanstack/router-vite-plugin, react, react-dom, @types/react, @types/react-dom, @typescript-eslint/eslint-plugin, @typescript-eslint/parser, @vitejs/plugin-react, eslint, eslint-plugin-react-hooks, es...
BeforeLoad reproduction (forked) - StackBlitz
Was this page helpful?