Performance question
At my company, we have a few different blockers for data fetching - we use our own internal package manager and “repackage” external ones if approved by infra. We use Apollo (older version) and a wrapped Apollo for rest endpoints. My team “vendored” react query because we had specific use cases that required the granular control it gives and decided to stick with it.
My question is, I know Apollo eats at performance over time calling their hooks (at least in the version we use). Does react query have the same issue depending on the observers? Or when would it make sense to pass the data as props vs calling the hooks we create to manage the fetching?
We have some places where the query options would change, specifically the select option, but we already suffer from perf issues in our app we’re trying to resolve, and as I’m rearchitecting our component structure I want to make sure I’m not adding a “death by 1000 cuts” scenario
My question is, I know Apollo eats at performance over time calling their hooks (at least in the version we use). Does react query have the same issue depending on the observers? Or when would it make sense to pass the data as props vs calling the hooks we create to manage the fetching?
We have some places where the query options would change, specifically the select option, but we already suffer from perf issues in our app we’re trying to resolve, and as I’m rearchitecting our component structure I want to make sure I’m not adding a “death by 1000 cuts” scenario