brilliant-limeB
Refine3y ago
4 replies
brilliant-lime

React Query Options: Enabled change does not disable/pause requests

Hi everyone,

I am currently developing a page that incorporates various filters, some of which can become undefined upon selection. To manage this, I have set the queryOptions to enabled: false within the useTable hook whenever a filter changes to undefined. My intention is to pause the requests when the filter is undefined. However, I’ve encountered an issue where, once a request has been enabled for the first time, it does not become disabled. This results in continuous requests even though the queryOptions value has been altered.


Has anyone else experienced a similar issue? Could this be an unmapped problem, or is there a known solution or workaround?
Was this page helpful?