fix(lint): import sort + eslint-disable for timer-handle ref clear in effect
CI-caught: cron-jobs-section had an extra blank line between sorted imports; use-message-stream's visibility-flush effect assigns flushHandleRef.current=null inside a useEffect (legitimate timer-clear, not an atom mirror) — eslint-disable-next-line per the rule's documented convention.
This commit is contained in:
parent
aece98c5f3
commit
9d76d48d0a
|
|
@ -2,7 +2,6 @@ import { useStore } from '@nanostores/react'
|
|||
import { useEffect, useMemo, useState } from 'react'
|
||||
|
||||
import { usePaneVisible } from '@/components/pane-shell/pane-visibility'
|
||||
|
||||
import { ActionsContextMenu, type MenuKit, renderActionItem } from '@/components/ui/actions-menu'
|
||||
import { Codicon } from '@/components/ui/codicon'
|
||||
import { DisclosureCaret } from '@/components/ui/disclosure-caret'
|
||||
|
|
|
|||
|
|
@ -360,6 +360,7 @@ export function useMessageStream({
|
|||
// Page Visibility does not report every Windows/Linux focus transition.
|
||||
// Flush queued deltas on both signals so returning to a chat cannot leave a
|
||||
// completed chunk waiting for the next throttled timer.
|
||||
// eslint-disable-next-line no-restricted-syntax -- timer-handle clear inside effect, not an atom mirror
|
||||
useEffect(() => {
|
||||
const flushPendingDeltas = () => {
|
||||
if (flushHandleRef.current !== null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue