Replies: 3 comments 3 replies
-
| 
         Notice that your   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    2 replies
                  
                
            -
| 
         I second this - de-structuring  while we could store enabled in a variable, and reuse it, 
 const enabled = ...;
const res =  useQuery({ enabled: enabled && oopsy });
return ..?;so, it would be useful to return   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
In my project, most of useQuery are wrapped into new hooks and I have to manully return the
enabled-prop like the code below.If useQuery can expose
enabledback to me, it will be fine.In my case, I need
enabledto judge if this query is in use or not.Beta Was this translation helpful? Give feedback.
All reactions