jotaijs / jotai-apollo

Apollo graphql client integration for jotai :rocket: :ghost:
MIT License
50 stars 4 forks source link

The default Apollo Client is now constructed on demand to avoid confu… #5

Closed iwoplaza closed 1 year ago

iwoplaza commented 1 year ago

…sing the Apollo DevTools.

Me and my team found that by providing our own Apollo Client, the default one was still being created and making the Apollo DevTools think that it was the client it was supposed to track. I implemented the atom in a way that the Apollo Client gets created only when it is used for the first time.

codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 35c14e313376bb95bb72bede360eda7e2ab89a89:

Sandbox Source
React Configuration
React Typescript Configuration
React Browserify Configuration
React Snowpack Configuration
Next.js with custom Babel config Configuration
React with custom Babel config Configuration
Aslemammad commented 1 year ago

Please rebase as there things that changed in the master branch

iwoplaza commented 1 year ago

@Aslemammad Rebased as requested.