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

Fix false offline error #1285

Merged
merged 1 commit into from
Jun 10, 2023
Merged

Fix false offline error #1285

merged 1 commit into from
Jun 10, 2023

Conversation

bofeiw
Copy link
Contributor

@bofeiw bofeiw commented Jun 10, 2023

Rowy displays "offline" error and prevents users from entering table page as seen a couple of times.

The issue is caused by the package react-detect-offline that is not maintained since 2021 and affects Chrome on Windows, Firefox on Windows, and Chrome on Linux, because its polling solution no longer works.

This PR uses navigator.onLine as a replacement. As of today, this property has full support from Chrome, Firefox and Safari. According to the spec, if it returns false, no internet connection is guaranteed, and false positive is not a issue here.

@vercel
Copy link

vercel bot commented Jun 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
rowy-os ✅ Ready (Inspect) Visit Preview Jun 10, 2023 11:18am
1 Ignored Deployment
Name Status Preview Updated (UTC)
rowy-typedoc ⬜️ Ignored (Inspect) Jun 10, 2023 11:18am

@shamsmosowi shamsmosowi merged commit 5de5e2e into develop Jun 10, 2023
3 checks passed
@bofeiw bofeiw deleted the fix/false-offline branch June 10, 2023 18:02
@harinij harinij mentioned this pull request Jun 16, 2023
@Anurag00321 Anurag00321 mentioned this pull request Aug 7, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants