SHARE
TWEET

Untitled

a guest May 22nd, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (loading) return (
  2.           <div>
  3.             <span className="loader">
  4.               Fetching
  5.             </span>
  6.           </div>
  7.         )
  8.         if (error) {
  9.           if (error.networkError) return (
  10.             error.networkError.message
  11.           )
  12.           if (error.graphQLErrors) return (
  13.             error.graphQLError.map(({ message, location, path }) =>
  14.               <div>
  15.                 [graphQL error]: Message: {message}, Location: {location}, Path: {path}
  16.               </div>
  17.             )
  18.           )
  19.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top