Skip to Main Content
React Projects
book

React Projects

by Roy Derks
December 2019
Intermediate to advanced content levelIntermediate to advanced
474 pages
10h 3m
English
Packt Publishing
Content preview from React Projects

Adding subscriptions to React Native

The local GraphQL server that is running on your machine supports both a query and a subscription so that you can return a conversation from a specific user. Where the query will return the full conversation, the subscription will return any new message that may have been sent or received in that conversation. At the moment, the Conversation screen is only sending a document with the query that will return the conversation with a user if you tap on any of the conversations displayed on the Conversations screen.

Subscriptions can be added to your application in multiple ways; using the Subscription component from react-apollo is the most simple one. But since you're already retrieving the conversation using ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

React Projects - Second Edition

React Projects - Second Edition

Roy Derks
Test-Driven React

Test-Driven React

Trevor Burnham

Publisher Resources

ISBN: 9781789954937Supplemental Content