79651617

Date: 2025-06-03 16:53:25
Score: 1.5
Natty:
Report link

As best I can tell the state being reset is just the error and data properties. It doesn't say more (like anything about caching behavior or whatever else). But whether clearing these properties will be useful depends on your app, not react-query's internal state. i.e. if you're using either property being non-nullish as an indicator that some event has occurred - like using the properties in a dependency array - you might want to reset them before firing another mutation.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ibrust