question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hey love what you built here. There aren’t a lot of apollo examples that don’t store a jwt token in localstorage and use that to determine if a user is logged in, so glad to see a solution using sessions!

I’m curious to see how you would handle something like a Header component that’s outside of your AuthRoutes, but that reflects the current auth state by either showing Login/Register or Logout. So when I log in, the header then knows to update and show the logout link.

so something like:

<ApolloProvider client={client}>
  <Header />
  <Routes />
</ApolloProvider>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

0reactions
captDaylightcommented, Oct 1, 2018

thx 🙇‍♂️ ! exactly what I was looking for.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insert a header or footer - Microsoft Support
Select Insert > Header or Footer. · Select one of the built in designs. · Type the text you want in the header...
Read more >
How to Add a Header in Microsoft Word: 12 Steps (with Pictures)
1. Open Microsoft Word. It's a blue app with a white "W" on it. You can also open an existing document by double-clicking it....
Read more >
How to Insert a Custom Header or Footer in Microsoft Word
1. Click the Insert tab. It's at the top of Word. If you've already inserted a header or footer and want to edit it,...
Read more >
Word 2016: Headers and Footers - GCF Global
To insert a preset header or footer: · Select the Insert tab, then click the Header or Footer command. · In the menu...
Read more >
How to Insert Headers and Footers in Microsoft Word
After you select a style, Word will automatically switch from the Insert tab to the Header & Footer tab. This tab only appears...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found