-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Description
I was recently looking at React Query and found in their docs that they have something called dependent queries:
https://tanstack.com/query/latest/docs/framework/react/guides/dependent-queries
I found this very interesting and something that I often find myself needing with the hooks, especially as it relates to user based content where I don't want to trigger a subscription and everything else if the user is not logged in or at least until that data is available. This could also be used with other conditional data and could help in reducing lot of boilerplate code to handle such scenarios or wait with execution until the given data is available so that I don't have a flash of 404 page and similar issues.