Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forcing Reloads (not a chapter) #6

Open
philsturgeon opened this issue Apr 5, 2019 · 1 comment
Open

Forcing Reloads (not a chapter) #6

philsturgeon opened this issue Apr 5, 2019 · 1 comment
Assignees

Comments

@philsturgeon
Copy link
Contributor

This should probably fit in somewhere in the book, or maybe be part of a new chapter, but the idea to mention this concept popped into my head today.

Where could we put a thing about how to update your client when important changes happen?

There is a) hot reloads, but also b) you need to log in again, and we are gonna do an actual refresh.
See image below

This example from asana is not just "you are logged out" but "there have been significant deployments so you ned a new session". Some folks do this when they get a lot of 500 errors, or of course lots of 403s, but there is often a more proactive approach with maybe a BFF or more general API having awareness of releases? I have vague memories of telling frontend devs to do this but i cannot remember qwhat we did.

For mobile users there is also "You need to update your application". This could happen if errors have a Sunset header on them for example, but what other signs are there?

@mbifulco
Copy link
Member

mbifulco commented Jun 5, 2019

  • suddenly we detect loss of connection (loads of 500 errors, etc) and we realize we need to do something to update
  • using git commit hash to detect
  • React Error boundaries to track when things start falling apart - provide an interface saying: we know this is bad, we logged this and it will get attention, and here’s how you talk to support if you need it; otherwise, go ahead and refresh

@philsturgeon philsturgeon added this to the July Book Launch milestone Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants