Skip to content

Instantly share code, notes, and snippets.

@cmelchior
Created July 16, 2021 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cmelchior/a64ee77732edc4ceb041cc9fba56a26f to your computer and use it in GitHub Desktop.
Save cmelchior/a64ee77732edc4ceb041cc9fba56a26f to your computer and use it in GitHub Desktop.
Realm Kotlin 0.40 Release Blog Post - Version Mismatch
// A write can now happen between two queries
val results1: RealmResults<Person> = realm.objects(Person::class)
val results2: RealmResults<Person> = realm.objects(Person::class)
// Resulting in subsequent queries not returning the same result
results1.version() != results2.version()
results1.size != results2.size
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment