Geo-Web-Project / cadastre

Map-based interface for claiming, buying, and managing Geo Web land parcels.
https://geoweb.land/
MIT License
25 stars 15 forks source link

fix: memoize graphQL client #435

Closed tnrdd closed 1 year ago

tnrdd commented 1 year ago

Description

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:

Alert Reviewers

@codynhat @gravenp