# gpui: Improve \`cx.on_action\` method to support chaining \(\#44353\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b633de66f79305541dae194b2b6859ae9fac5c16)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b633de66f79305541dae194b2b6859ae9fac5c16

Requested commit: b633de66f79305541dae194b2b6859ae9fac5c16

Commit: b633de66f79305541dae194b2b6859ae9fac5c16

Tree: 8bc6343a39c288df685edc427c91e9de94d5eb4a

Author: Jason Lee

Committer: GitHub

## Message

```
gpui: Improve `cx.on_action` method to support chaining (#44353)

Release Notes:

- N/A

To let `cx.on_action` support chaining like the `on_action` method of
Div.


https://github.com/zed-industries/zed/blob/ebcb2b2e646f10006dc40167d16e82ae74caa3a2/crates/agent_ui/src/acp/thread_view.rs#L5867-L5872
```

## Parents

- [2f63543380c8d450e48523e9e3ffd800d8fdde7b](https://git.cafe/gitcafe/zed/commit/2f63543380c8d450e48523e9e3ffd800d8fdde7b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b633de66f79305541dae194b2b6859ae9fac5c16?format=markdown)
