Suspense around Outlets
I am using Apollo Client with Tanstack Router. I have wrapped an
Here is my example code
route.tsx
$dealId.tsx
This layout does not show my Suspense fallback in the
Perhaps @jerelmiller might be of assistance as well.
<Outlet /> in a <Suspense> and I am using useReadQuery to receive preloaded data from the loader I would assume this would trigger the Suspense fallback based on this line from the Apollo documenationThe preload function returns a queryRef that is passed to useReadQuery to read the query data and suspend the component while loading.Here is my example code
route.tsx
$dealId.tsx
This layout does not show my Suspense fallback in the
route.tsx file. However when I pass down the dealQueryRef to the <DealInfo /> component, wrap it in a <Suspense> and call useReadQuery from inside the fallback shows up correctly in the $dealId.tsx route.Perhaps @jerelmiller might be of assistance as well.