mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-16 23:01:06 +02:00
ThreadListItemComponent is wrapped in memo(), but formatRelativeTime(new Date(thread.updatedAt)) was called inline during render, creating a new Date on every parent re-render regardless of whether updatedAt changed. Wrap the call in useMemo keyed on thread.updatedAt so the date formatting only re-runs when the value actually changes. |
||
|---|---|---|
| .. | ||
| connector-popup | ||
| assistant-message.tsx | ||
| chat-session-status.tsx | ||
| citation-metadata-context.tsx | ||
| connector-popup.tsx | ||
| document-upload-popup.tsx | ||
| edit-composer.tsx | ||
| image.tsx | ||
| inline-citation.tsx | ||
| inline-mention-editor.tsx | ||
| markdown-code-block.tsx | ||
| markdown-text.tsx | ||
| thinking-steps.tsx | ||
| thread-list.tsx | ||
| thread-scroll-to-bottom.tsx | ||
| thread.tsx | ||
| tool-fallback.tsx | ||
| tooltip-icon-button.tsx | ||
| user-message.tsx | ||