This course is no longer maintained and may be out-of-date. While it remains available for reference, its content may not reflect the latest updates, best practices, or supported features.
Apollo useSubscription Reactフック
ライブデータをUIに取り込む最も簡単な方法は、Apollo React-HooksのuseSubscription Reactフックを使うことです。これにより、コンポーネントのレンダリング機能内のサービスから直接データのストリームをレンダリングできます。subscriptionは単なるlistenerであるため、最初に接続したときはデータを要求せず、新しいデータ取得のためだけに接続を開くという点に注意してください。
Did you find this page helpful?
Start with GraphQL on Hasura for Free
Build apps and APIs 10x faster
Built-in authorization and caching
8x more performant than hand-rolled APIs

