You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem we're facing involves too many unnecessary updates happening in our application.
This happens because of how @tanstack/react-query handles the properties that trigger updates.
Inside, they're using a Proxy to keep track of which properties will trigger re-renders.
But when we use certain code patterns, like spreading properties with "...", it tells the Proxy to watch everything, even if we don't need it.
Implement a useNamedQuery to fix it, keeping the same API usage.
The text was updated successfully, but these errors were encountered:
The problem we're facing involves too many unnecessary updates happening in our application.
This happens because of how
@tanstack/react-query
handles the properties that trigger updates.Inside, they're using a
Proxy
to keep track of which properties will trigger re-renders.But when we use certain code patterns, like spreading properties with "...", it tells the
Proxy
to watch everything, even if we don't need it.Implement a
useNamedQuery
to fix it, keeping the same API usage.The text was updated successfully, but these errors were encountered: