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
Suggest adding a pattern to disable retry in react-query client in tests. This was something we discovered while investigating slow unit tests. By default react-query retries 3 times exponentially, having this rule allows to disable the retry thus allowing tests to run faster.
Suggest adding a pattern to disable retry in react-query client in tests. This was something we discovered while investigating slow unit tests. By default react-query retries 3 times exponentially, having this rule allows to disable the retry thus allowing tests to run faster.
There is probably a better way to do this, but the above pattern worked for us in our codebase.
For reference: Here is the doc. https://tanstack.com/query/v5/docs/framework/react/guides/testing#turn-off-retries
The text was updated successfully, but these errors were encountered: