Replies: 1 comment
-
I switched useSuspenseQuery with useQuery and it's working as I was expecting now. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is my setup: I have a folder named
test
with two files,index.tsx
androute.tsx
. This makesindex.tsx
render as anOutlet
insideroute.tsx
under the path/test
. Only theindex.tsx
route has a loader, which usesloaderDeps
anddeps
params to extract the search params in its loader. The problem is that every time the search params change, thependingComponent
is shown for the parent route (route.tsx
), but I want it to appear only for the child (index.tsx
). How can I achieve this? I also tried convertingroute.tsx
into a layout with the_
prefix, but the same issue occurred.I am using Tanstack Query for the fetching, with queryClient.ensureQueryData in the loader and useSuspenseQuery in the route component.
Beta Was this translation helpful? Give feedback.
All reactions