Skip to content

Commit

Permalink
Update plugins/ui/docs/hooks/use_render_queue.md
Browse files Browse the repository at this point in the history
Co-authored-by: margaretkennedy <[email protected]>
  • Loading branch information
mofojed and margaretkennedy authored Dec 5, 2024
1 parent 3b421e5 commit aa0f999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ui/docs/hooks/use_render_queue.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def ui_batch_example():
batch_example = ui_batch_example()
```

When running the above example, we'll see _two_ toasts with each press of the button: a red one where `a != b` (as `a` gets updated first), then a neutral one where `a == b` (as `b` gets updated second). We can use the `use_render_queue` hook to ensure the updates are always batched together when working with a background thread:
When running the above example, _two_ toasts appear with each button press: a red one where `a != b` (as `a` gets updated first), then a neutral one where `a == b` (as `b` gets updated second). Use the `use_render_queue` hook to ensure the updates are always batched together when working with a background thread:

```python
from deephaven import ui
Expand Down

0 comments on commit aa0f999

Please sign in to comment.