one Query with many dependencies vs many Queries
Hey guys, just started using react query and i am not sure regarding this using nextjs 12 (SSG) with hydration:
- blogOverview that can filter by tag via api and via search params.
Initially I want to load the data during build (no tags, no search):
What is the best way to handle the other cases in the blog page?
3 Multiple queries like this? and how would i decide which data is the source of truth in the component? this seems cumbersome
would it make sense to structure this like one query that also gets used during SSG like this and pass null to tagsIds and search during SSG?
- blogOverview that can filter by tag via api and via search params.
Initially I want to load the data during build (no tags, no search):
What is the best way to handle the other cases in the blog page?
3 Multiple queries like this? and how would i decide which data is the source of truth in the component? this seems cumbersome
would it make sense to structure this like one query that also gets used during SSG like this and pass null to tagsIds and search during SSG?