mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
* chore(lint): fix no-direct-set-state-in-use-effect violations Replaced 56 setState-in-useEffect anti-patterns across 21 files with idiomatic React patterns: derived state via useMemo, useSyncExternalStore for external stores, key-prop resets, render-phase prev-value trackers, and lazy useState initializers. Deleted dead defensive syncs in PlusSettings, ModelEditDialog, and the fallback-notice effect in CustomCommandChatModal. Narrowly suppressed three legitimate cases (interval-driven animation, DOM measurement, Lexical pill→context absorb). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * address codex comment --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| chat-components | ||
| command-ui | ||
| composer | ||
| modals | ||
| project | ||
| quick-ask | ||
| ui | ||
| Chat.tsx | ||
| CopilotView.tsx | ||
| CustomPromptSyntaxInstruction.tsx | ||
| IndexingProgressCard.tsx | ||
| SystemPromptSyntaxInstruction.tsx | ||
| TruncatedText.tsx | ||