Fix flicker in iterm2 (#266)

This commit is contained in:
Tae Hyung Kim 2025-05-07 12:57:19 -07:00 committed by GitHub
parent 358281f0fd
commit 0a7f461d39
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 183 additions and 193 deletions

View file

@ -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,