ActualizeA
Convex Community16mo ago
6 replies
Actualize

Convex + Nextjs using preloadQuery inside layout.tsx

Hi,
I am trying to understand if doing a preloadQuery inside a layout.tsx and share it amongst my "use client" pages through a "react context" has any advantages over using useQuery on each page (assuming the data hasn't changed). Or if it's an anti-pattern cause layout.tsx is loaded once and will not cause re-renders?
Was this page helpful?