Memoize the ApolloClient instance so that when /pages/_app.tsx re-render after setAuthStatus we continue using the first client instead of assign a new one and lose the cached data.
Issue
fixes #434
Checklist:
[x] My commit message follows the Conventional Commits specification
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have tested my code
[x] My changes generate no new warnings
[x] My PR is rebased off the most recent develop branch
Description
Memoize the
ApolloClient
instance so that when/pages/_app.tsx
re-render aftersetAuthStatus
we continue using the first client instead of assign a new one and lose the cached data.Issue
fixes #434
Checklist:
develop
branchdevelop
branchAlert Reviewers
@codynhat @gravenp