-
Notifications
You must be signed in to change notification settings - Fork 89
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
support realm refresh() #1046
support realm refresh() #1046
Conversation
Pull Request Test Coverage Report for Build 4044219192
💛 - Coveralls |
don't invoke the callback if the onRefresh registration fails fix test for outside transaction registration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added some questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly test related suggestions
blocked on realm/realm-core#6075 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should consider dropping the synchronous version, and renaming the async version to just refresh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[CHANGES REQUESTED].
I can't not make my own PRs RED in GH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[SUGGESTED CHANGES]
Co-authored-by: blagoev <lubo@blagoev.com>
* support realm refresh() * fix up changelog * support refresh callback * fix tests, add not called test * make operation a no op if the callback was not registered successfully don't invoke the callback if the onRefresh registration fails fix test for outside transaction registration * fix expectation * fix refresh callback implementation. * add refreshAsync to changelog * use proper future timeout * fix test * Update realm in another Isolate * Disable auto refresh realm and refresh manually * Return result from refreshAsync * Fix API doc * Fix API doc * Repair a test * Code review changes * Code review changes * Code review changes * Apply suggestions from code review Co-authored-by: blagoev <lubo@blagoev.com> * Code review changes --------- Co-authored-by: Desislava Stefanova <dst.stefanova@gmail.com> Co-authored-by: Desislava Stefanova <95419820+desistefanova@users.noreply.github.com>
Add support for Realm.refresh() and onRefresh callbacks
#793