(insightful music)…- [Instructor] Let's do a demonstration now…of configuring and querying Client State.…Let's go ahead and get started putting together…our Client State configuration,…and demonstrate a query pulling some of that data…out of our client state.…To do this, we're going to open up our source folder here.…And inside of our source folder,…we're going to open up our index.js file.…Here at the top, we're going to need to import…a couple of things to be able to make this happen.…First, you see where we have out import split,…we'll need to pull in the Apollo…Link, clasp so we can actually do the from option…to actually combine the Client State…with the actual HTTP link.…
Down here, we're going to be importing…our withClientState…and we're going to import that from…our apollo-link-state there.…We'll need to do is actually configure this ClientState…so that we can include it in our link configuration…for the apollo client.…I'm going to take the withClientState right here,…come down here and say const…clientStateLink…
Skill Level Advanced
GraphQL Essential Training (2018)with Emmanuel Henri1h 54m Intermediate
React.js Essential Training (2018)with Eve Porcello1h 25m Intermediate
1. Apollo Client State with React
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.