Don't query user if not signed in. #96

Merged
Irev-Dev merged 1 commits from kurt/issue-95 into main 2020-11-12 10:10:28 +01:00
Irev-Dev commented 2020-11-11 09:35:33 +01:00 (Migrated from github.com)

Resolves #95
Was causing console noise

Resolves #95 Was causing console noise
Irev-Dev (Migrated from github.com) reviewed 2020-11-11 09:37:19 +01:00
Irev-Dev (Migrated from github.com) commented 2020-11-11 09:37:19 +01:00

Only found this in the docs today. Since react hooks like useQuery have to be at the top level of the function and can be put into normal if statements, this kinda logic has to be built into the hook itself. But yeah found what I needed pretty quickly looking at the apollo docs.

Only found this in the docs today. Since react hooks like `useQuery` have to be at the top level of the function and can be put into normal if statements, this kinda logic has to be built into the hook itself. But yeah found what I needed pretty quickly looking at the apollo docs.
Yash-R (Migrated from github.com) approved these changes 2020-11-12 09:35:12 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: h3n3/cadhub#96