codepod-io / codepod

Codepod IDE: Scalable Interactive Coding
https://codepod.io
MIT License
71 stars 16 forks source link

refactor: move apolloClient out of Zustand store #507

Closed lihebi closed 11 months ago

lihebi commented 11 months ago

Pass the apolloClient as a paramter instead.

Old:

apolloClient = useApolloClient()
setApolloClient(apolloClient)
...
yjsRun(id)

New:

apolloClient = useApolloClient()
yjsRun(id, apolloClient)