TanStackT
TanStack3y ago
10 replies
popular-magenta

Subscribe to a query without useQuery

I have a list of 300+ items rendered on the page and want to avoid mounting useQuery for each item. However, each item is wrapped with React.memo and I need the component to update whenever one particular query's data is updated. is there a way to subscribe to one particular query's changes and update the component accordingly without performance issues? thanks!
Was this page helpful?