Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugins/ui/docs/add-interactivity/render-cycle.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ After you trigger a render, `deephaven.ui` runs the component functions and then

This process is recursive: if the updated component returns some other component, `deephaven.ui` will render that component next, and if that component also returns something, it will render that component next, and so on. The process will continue until there are no more nested components.

> [!Note]
> In the current implementation, when any state changes in a component tree, **all components re-render from the root down to the leaf nodes**. This means if a child component's state updates, the parent and all siblings will also re-render. While this ensures consistency, it's important to use `ui.use_memo` for expensive calculations to avoid re-computing values unnecessarily on every render.

Rendering must always be a [pure](../describing/pure_components.md) calculation:

- Same inputs, same output. Given the same inputs, a component should always return the output.
Expand Down
Loading