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

Check if there are pending changes to synchronize #1613

Open
clementetb opened this issue Dec 21, 2023 · 1 comment
Open

Check if there are pending changes to synchronize #1613

clementetb opened this issue Dec 21, 2023 · 1 comment

Comments

@clementetb
Copy link
Contributor

We like to have a way to check if there are changes in the db that have not been synchronized.

There are some situations where the app might be offline, and some changes have occurred, this feature would allow us to detect this situation and react to it, allowing the app to display a warning message that it requires some connectivity.

A workaround is to combine a Realm, session change and progress listeners, to detect if the DB is in a dirty state, and if all changes have been uploaded.

We would provide an API to check if there are pending changes, and/or a flow with the current status.

@danieltabacaru
Copy link

all this data is already available in the sync client so we can easily expose it

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