The useEffect that scrolls to and highlights a comment had timeline.length in its dependency array. When a new reply was posted, timeline.length changed, re-triggering the scroll and highlight animation. Added a ref to track whether we've already highlighted for the current highlightCommentId so it only fires once. |
||
|---|---|---|
| .. | ||
| components | ||
| config | ||
| hooks | ||
| stores | ||
| utils | ||
| index.ts | ||
| store.ts | ||