Skip to content

Commit 06b4d7c

Browse files
authored
Merge pull request #418 from FezVrasta/patch-1
docs: fix hooks example
2 parents 6262373 + eba3335 commit 06b4d7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,10 @@ const App = () => {
280280

281281
init().catch(console.error);
282282
}, []);
283+
284+
if (!client) {
285+
return <h2>Initializing app...</h2>;
286+
}
283287

284288
return (
285289
<ApolloProvider client={client}>

0 commit comments

Comments
 (0)