swapped Apollo Client with graph-client #892
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
graph-client-pr.mov
Description
The GreetingsTable.tsx component was using ApolloClient, so I made a new hook that uses graph-client called useGraphClient. The hook takes in a query and calls the execute function from the index.ts file generated by the command
yarn graphclient build
. I also removed traces of Apollo Client within the ScaffoldEthAppWithProviders.tsx. Please ask me questions and/or recommendations/ fixes to my codeAdditional Information
Related Issues
Closes #{issue number}
Note: If your changes are small and straightforward, you may skip the creation of an issue beforehand and remove this section. However, for medium-to-large changes, it is recommended to have an open issue for discussion and approval prior to submitting a pull request.
Your ENS/address: 0x5D4132B0344C592Ae8d40dfB67f966401a6679c9