-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Feedback: How to handle offline use appropriately with network errors? #6172
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon. Please update it or it may be closed to keep our repository organized. The best way is to add some more information or make a pull request with a test case. Also you might get help in fixing it at the RxDB Community Chat If you know you will continue working on this, just write any message to the issue (like "ping") to remove the stale tag. |
The push- and pull handlers will be retried until they no longer error. If you want to pause that, return a promise that does not resolve until the user does something. |
Hi guys I am facing the same issue with the push replication although my data is getting pushed but getting this error and I think because of this only one (first record is getting pushed to the server). What to do any suggestion please. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon. Please update it or it may be closed to keep our repository organized. The best way is to add some more information or make a pull request with a test case. Also you might get help in fixing it at the RxDB Community Chat If you know you will continue working on this, just write any message to the issue (like "ping") to remove the stale tag. |
I am testing an application's stability while offline and everything works great, though the console gets filled with errors like shown at the bottom of this issue.
Is there a way to catch the network errors and, maybe just display a banner to the user when they are offline?
I did attempt to catch any errors within the push handler, like so:
My attempt does not work though, as I am still receiving the
RxError (RC_PUSH_NO_AR)
. Error below:The text was updated successfully, but these errors were encountered: