Skip to content

Commit

Permalink
Update plugins/ui/docs/hooks/use_state.md
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Bender <[email protected]>
  • Loading branch information
dgodinez-dh and mofojed authored Jan 27, 2025
1 parent cc35a7e commit a901c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ui/docs/hooks/use_state.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ result = multi_count_buttons()

## Multiple updates are batched

When a component calls state setters multiple times, the updates a to state are batched. This means multiple updates to state will only trigger one re-render.
When a component calls state setters multiple times, the updates to state are batched. This means multiple updates to state will only trigger one re-render.

For the example above, All of the `set_count` calls will be batched together and the component will only re-render once after the event loop (the call to `increase_value`) returns.

Expand Down

0 comments on commit a901c0f

Please sign in to comment.