Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jnumainville committed Apr 22, 2024
1 parent 9e0e58a commit 8de6ef5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/ui/src/deephaven/ui/hooks/use_table_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ def use_table_data(
executor_name = "concurrent"

# memoize table_updated (and listener) so that they don't cause a start and stop of the listener
table_updated = ui.use_callback(
lambda: _set_new_data(table, sentinel, set_data, set_is_sentinel),
table_updated = ui.use_memo(
lambda: lambda: _set_new_data(table, sentinel, set_data, set_is_sentinel),
[table, sentinel],
)

# call table_updated in the case of new table or sentinel
ui.use_effect(table_updated, [table, sentinel])
listener = ui.use_callback(
partial(_on_update, ctx, table_updated, executor_name),
listener = ui.use_memo(
lambda: partial(_on_update, ctx, table_updated, executor_name),
[table_updated, executor_name, ctx],
)

Expand Down

0 comments on commit 8de6ef5

Please sign in to comment.