zl程序教程

您现在的位置是:首页 >  后端

当前栏目

[GraphQL] Fetch Server Data and Client-side State in One Query using React Apollo + GraphQL

serverReact in and Data Using Client One
2023-09-14 09:00:50 时间

In this lesson we look at how the Apollo @client directive can be used to fetch client-side state along with server data with one query. I also show how to update the client-side state using a mutation connected to a button.

Additional Resources Apollo Client 2.0

https://www.apollographql.com/docs/react/essentials/local-state.html#defaults.html