Commit 7032fb0
authored
docs: clarify AI migration composer hook usage (#3137)
### 🎯 Goal
Clarify the AI migration guide so coding agents know when to use
`useMessageComposerContext()` versus `useMessageComposerController()`
during React v14 migrations.
### 🛠 Implementation details
- document `useMessageComposerContext()` as the hook for rendered
composer UI bindings
- document `useMessageComposerController()` as the hook for the
underlying `MessageComposer` controller and managers
- recommend dedicated state hooks for simple reads before reaching into
the controller directly
### 🎨 UI Changes
None.1 parent 6d04cdf commit 7032fb0
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
239 | 243 | | |
240 | 244 | | |
241 | 245 | | |
| |||
0 commit comments