diff options
| author | Tae Hyung Kim <[email protected]> | 2025-05-07 12:57:19 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-07 12:57:19 -0700 |
| commit | 0a7f461d392dbf887ab562e38a2e827e124bfa80 (patch) | |
| tree | cb0c70da1fbd57630da59c14b69c5f7ea9d1d92b /packages/cli/src/ui/hooks/useHistoryManager.ts | |
| parent | 358281f0fda7ef4045ca2e9d827a45b56f949467 (diff) | |
Fix flicker in iterm2 (#266)
Diffstat (limited to 'packages/cli/src/ui/hooks/useHistoryManager.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/useHistoryManager.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/cli/src/ui/hooks/useHistoryManager.ts b/packages/cli/src/ui/hooks/useHistoryManager.ts index 52dcfd4e..424f1fb6 100644 --- a/packages/cli/src/ui/hooks/useHistoryManager.ts +++ b/packages/cli/src/ui/hooks/useHistoryManager.ts @@ -49,7 +49,13 @@ export function useHistory(): UseHistoryManagerReturn { [getNextMessageId], ); - // Updates an existing history item identified by its ID. + /** + * Updates an existing history item identified by its ID. + * @deprecated Prefer not to update history item directly as we are currently + * rendering all history items in <Static /> for performance reasons. Only use + * if ABSOLUTELY NECESSARY + */ + // const updateItem = useCallback( ( id: number, |
