Subscribe/listen to api's that is currently fetching data #6570
              
                
                  
                  
                    Answered
                  
                  by
                    TkDodo
                  
              
          
                  
                    
                      sriadimanav
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 7 replies
-
| 
         I don't fully understand the question. What are you trying to achieve with that exactly ?  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    7 replies
                  
                
            
  
    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.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to subscribe to fetching or loading event for api's, similar to way we do for error and success callbacks
example:
queryClient.getQueryCache().config.onSuccess = () => {};
queryClient.getQueryCache().config.onError = () => {};
can something like this be done for loading/fetching too ?
Beta Was this translation helpful? Give feedback.
All reactions