-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix performance regression when updating the UI
Somehow the `selectedCount` and other stats were triggering re-renders of the entire page, probably because each folder component was checking whether to show "selected" or "non-selected" toolbar buttons, and the `selectedCount` was recalculated every time a window or tab changed. We can do this recalculation by not triggering downstream updates, which is what the new `computedLazyEq()` ref type does. (Incidentally, Vue has something similar internally, but it is not exposed for public consumption, sadly.)
- Loading branch information
1 parent
45b7956
commit f9d5c48
Showing
4 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters