Use nothing-changed helper in home to prevent unnecessary render

This commit is contained in:
Julia Friesel
2018-10-15 09:34:07 +02:00
parent dca286a1d6
commit 124f6cfce7
3 changed files with 7 additions and 5 deletions
+3
View File
@@ -0,0 +1,3 @@
export default function (dbChanges) {
return Object.values(dbChanges).every(changeArray => changeArray.length === 0)
}