about summary refs log tree commit diff
path: root/__tests__/lib/string.test.ts
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-08-13 18:51:49 +0100
committerGitHub <noreply@github.com>2024-08-13 18:51:49 +0100
commit57be2ea15b5bea019abf95a590640d688b7a8633 (patch)
tree6bde2e03aa3ab4e49a24a1ed8729ab771328b413 /__tests__/lib/string.test.ts
parent7e11b862e931b5351bd3463d984ab11ee9b46522 (diff)
downloadvoidsky-57be2ea15b5bea019abf95a590640d688b7a8633.tar.zst
Don't kick to login screen on network error (#4911)
* Don't kick the user on network errors

* Track online status for RQ

* Use health endpoint

* Update test with new behavior

* Only poll while offline

* Handle races between the check and network events

* Reduce the poll kickoff interval

* Don't cache partially fetched pinned feeds

This isn't a new issue but it's more prominent with the offline handling. We're currently silently caching pinned infos that failed to fetch. This avoids showing a big spinner on failure but it also kills all feeds which is very confusing. If the request to get feed gens fails, let's fail the whole query.

Then it can be retried.
Diffstat (limited to '__tests__/lib/string.test.ts')
0 files changed, 0 insertions, 0 deletions