Skip to content
Snippets Groups Projects
Commit ef7f6452 authored by Julia Friesel's avatar Julia Friesel
Browse files

Add explainer for db-unchanged

parent 4f6a705c
No related branches found
No related tags found
No related merge requests found
// when data changes, realm gives us an object with updates
// https://realm.io/docs/javascript/latest/#collection-notifications
// but it sometimes gets fired even though there are no changes
// - we want to check for that and see if all arrays are empty
export default function (dbChanges) {
return Object.values(dbChanges).every(changeArray => changeArray.length === 0)
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment