Commit 7d71b08
committed
Use "set" instead of "splice" for child changed
When using firebase-collection in a dom-repeat, the whole template has to refresh every time a child changes instead of only the modified child. That's because it is updating the array with a splice.
If we use a set instead, only the actual child is refreshed. The main problem with the "splice" was that I was losing focus on an input when the refresh was happening.
*fixed coding style1 parent 61acce8 commit 7d71b08
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | | - | |
| 589 | + | |
590 | 590 | | |
591 | 591 | | |
592 | 592 | | |
| |||
0 commit comments