summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useHistoryManager.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src/ui/hooks/useHistoryManager.ts')
-rw-r--r--packages/cli/src/ui/hooks/useHistoryManager.ts8
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,