ecyrbe/zodios

react-hooks: "enabled" react-query Option not working

schoettler opened this issue · 4 comments

Setting enabled: false doesn't seem to be working when using a hook alias:

image
(reference here)

My query re-fetchs, as if the option isn't being set.

ecyrbe commented

This must be an issue elsewhere in your program, Zodios forwards enabled to react-query without touching it.

ecyrbe commented

If you need help debuging you can ask for help in discord community

I wouldn't post here without being sure it's an issue with the library. But at this point, not worth debugging.

ecyrbe commented

You can check here that zodios works just fine :
https://codesandbox.io/s/sparkling-tree-nyg7y3?file=/src/users.tsx

again, it's a bug somewhere else