-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: useViewportData - memoize subscriptions and first row of viewport (
#2008) fixes #2003 - useViewportData - re-subscribes to table any time ViewportData changes - Memoized `dh.Table.EVENT_SIZECHANGED` handler - Memoized `dh.Table.EVENT_UPDATED` handler fixes #1928 - useViewportData - setViewport should maintain last firstRow value when table size changes - Track last set "first row" to be re-used when table size changes but table reference remains the same **Tested** - Ticking table - table update subscriptions no longer occur on each viewportData change - size change handler no longer re-subscribes on every render - ACL Editor - scrolling viewport data still works. Filtering still properly resets viewport to zero
- Loading branch information
Showing
3 changed files
with
31 additions
and
9 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