T
TanStack2mo ago
conscious-sapphire

router.tsx for Convex + Start RC

I wonder if it is correct to nest <ConvexAuthProvider> as a child of <QueryClientProvider>. Is it redundant? deps:
"@convex-dev/auth": "^0.0.90",
"@convex-dev/react-query": "0.0.0-alpha.11",
"convex": "^1.27.3",
"@tailwindcss/typography": "^0.5.19",
"@tanstack/react-query": "^5.90.2",
"@tanstack/react-query-devtools": "^5.90.2",
"@tanstack/react-router": "^1.132.26",
"@tanstack/react-start": "^1.132.26",
"@tanstack/router-devtools": "^1.132.26",
"@convex-dev/auth": "^0.0.90",
"@convex-dev/react-query": "0.0.0-alpha.11",
"convex": "^1.27.3",
"@tailwindcss/typography": "^0.5.19",
"@tanstack/react-query": "^5.90.2",
"@tanstack/react-query-devtools": "^5.90.2",
"@tanstack/react-router": "^1.132.26",
"@tanstack/react-start": "^1.132.26",
"@tanstack/router-devtools": "^1.132.26",
router.tsx see attachment
3 Replies
genetic-orange
genetic-orange2mo ago
Probably you still want it, you'll have auth components that use it for context
conscious-sapphire
conscious-sapphireOP2mo ago
yeah but i wonder if it is redundant with the other provider
genetic-orange
genetic-orange2mo ago
The query client provider provides query client from query, the convex auth provides context for convex auth methods. If you aren't using convex auth methods directly, you should be able to remove it.

Did you find this page helpful?