scaffold-eth / scaffold-eth-2

Open source forkable Ethereum dev stack
https://scaffoldeth.io
MIT License
1.42k stars 894 forks source link

swapped Apollo Client with graph-client #892

Closed ayechanst closed 4 months ago

ayechanst commented 4 months ago

https://github.com/user-attachments/assets/3594048c-c2ac-4a07-978f-1a64750b5657

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 code

Additional 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