-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Memoize use_table_data listener (#428)
Because the listener function was not memoized in `use_table_data`, the `use_effect` within `use_table_listener` was getting called unnecessarily, which means in some cases table updates can be missed during the start and stop of the listener. Added fix and caution message in `use_table_listener` for now. It might be worthwhile making `use_table_listener` more robust in cases where arguments changed, but the table specifically did not. This is not trivial though.
- Loading branch information
1 parent
b0574c2
commit f342dad
Showing
3 changed files
with
95 additions
and
8 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