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
When current query contains an error, i.e. queryFn always fails, and somehow the useQuery is triggering a re-render, which somehow caused a re-mount... There will be an avalanche of query sent out... #4644#4863
Problem reproduction: https://github.com/cuzfrog/retryOnMount-error-demo. version is 5.18.0. When 2 queries with the same key, the child query's retry propagates the effect to the parent query, which apparently violates the flow direction.
Some points:
The config retry should also include the retryOnMount's behavior, or at least clearly documented.
Throttling should be given to retryOnMount
in additional to enable, provide some values as dependencies similar to useEffect
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When current query contains an error, i.e.
queryFn
always fails, and somehow theuseQuery
is triggering a re-render, which somehow caused a re-mount... There will be an avalanche of query sent out... #4644 #4863Problem reproduction: https://github.com/cuzfrog/retryOnMount-error-demo. version is
5.18.0
. When 2 queries with the same key, the child query's retry propagates the effect to the parent query, which apparently violates the flow direction.Some points:
retry
should also include theretryOnMount
's behavior, or at least clearly documented.enable
, provide some values as dependencies similar touseEffect
Beta Was this translation helpful? Give feedback.
All reactions