Learn how to protect a route with onEnter.
- [Instructor] In the last video,…we set up our application to record our games…on our graph.cool database.…Now we need to make sure we configure our profile page…so that it actually shows us…our unique user information,…and not this dummy data that we filled it with earlier.…Let's go back to Atom now and open up our profile container.…Remember, here we're using our default props.…Let's scroll down all the way to the bottom,…and here on line 90 and below,…we're going to start to define…what kind of information we want to get back.…
We want our information, so we know…we want it to be beneath user.…It's okay for us to get ID.…The next thing we'll want to get is our email.…Remember, we're showing that at the top of the page.…We also are going to want to get our p1games.…Since p1games is going to constitute a list of games,…I also need to specify how many I want.…There are other options available to me.…I could say first or last,…but I'm going to say I just want the first 10.…
You'll find that graph.cool also provides you…
- Installing local dependencies
- Generating a starter project
- Deploying to Heroku
- Planning your development process
- Using styled-components
- Styling for mobile
- Setting up models on Graphcool
- Creating Relay mutations
- Adding Relay to your authentication flow
- Protecting routes with authentication
Skill Level Intermediate
2. Deployment Environments
3. App Functionality
4. Implementing Libraries
5. Creating Components
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.