-
| The documentation states  Since this no longer works, could you provide an example on how to properly make sure the  Thanks in advance! | 
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            boschni
          
      
      
        Aug 27, 2020 
      
    
    Replies: 1 comment 3 replies
-
| Hi @alinjie! You could do it like this for example: function Component() {
  const { data, error } = useQuery('key', queryFn)
  if (error) return <div>Error</div>
  if (!data) return <div>Loading</div>
  return <div>Data: {data}</div>
} | 
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
      Answer selected by
        alinjie
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Hi @alinjie! You could do it like this for example: