• turbo 2.10.12 • Packages in scope: @bb/app • Running lint, typecheck, build in 1 packages • Remote caching disabled @bb/app:lint: cache miss, executing e87b9f77fdbc3114 @bb/process-utils:generate:profile-worker: cache hit, replaying logs afccb4b50272344e @bb/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker CHECKOUT/packages/process-utils @bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs @bb/process-utils:generate:profile-worker: @bb/templates:generate:templates: cache hit, replaying logs fadfc1cdab162531 @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates CHECKOUT/packages/templates @bb/templates:generate:templates: > node ./scripts/generate-templates.mjs @bb/templates:generate:templates: @bb/templates:generate:plugin-scaffold: cache hit, replaying logs e2f4dac94d3a4eaa @bb/templates:generate:plugin-scaffold: @bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold CHECKOUT/packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/plugin-build:generate: cache hit, replaying logs e179c880b6cd82a9 @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate CHECKOUT/packages/plugin-build @bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs @bb/plugin-build:generate: @bb/plugin-build:generate: wrote packages/plugin-build/src/generated/plugin-theme.generated.ts @bb/plugin-build:generate: wrote packages/plugin-build/src/generated/host-tailwind.css @bb/plugin-build:generate: wrote packages/plugin-build/src/generated/host-tailwind-version.ts @bb/plugin-build:generate: wrote CHECKOUT/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.0) @bb/app:typecheck: cache miss, executing f95ee617e6791466 @bb/app:build: cache miss, executing 57a88fbef1522711 @bb/app:lint: @bb/app:lint: > @bb/app@0.0.1 lint CHECKOUT/apps/app @bb/app:lint: > oxlint src vite.config.ts vite.dev.config.ts vite-bundle-stats.ts vite-font-preload.ts vite-split-prefetch.ts vite-forkable-plugin-paths.ts vite-shared-ui-seam.ts vite-react-compiler.ts @bb/app:lint: @bb/app:typecheck: @bb/app:typecheck: > @bb/app@0.0.1 typecheck CHECKOUT/apps/app @bb/app:typecheck: > tsrs --noEmit && tsrs --noEmit -p tsconfig.node.json @bb/app:typecheck: @bb/app:build: @bb/app:build: > @bb/app@0.0.1 build CHECKOUT/apps/app @bb/app:build: > node scripts/generate-pwa-icons.mjs && vite build --logLevel warn && node ../../scripts/precompress-app-dist.mjs dist @bb/app:build: @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/plugin/plugin-slot-mounts.test.tsx:269:9] @bb/app:lint: 268 | const methodsAreStable = @bb/app:lint: 269 | initialMethods.current.setText === composer.setText && @bb/app:lint: : ^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 270 | initialMethods.current.updateText === composer.updateText && @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/plugin/plugin-slot-mounts.test.tsx:270:9] @bb/app:lint: 269 | initialMethods.current.setText === composer.setText && @bb/app:lint: 270 | initialMethods.current.updateText === composer.updateText && @bb/app:lint: : ^^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 271 | initialMethods.current.clear === composer.clear && @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/plugin/plugin-slot-mounts.test.tsx:271:9] @bb/app:lint: 270 | initialMethods.current.updateText === composer.updateText && @bb/app:lint: 271 | initialMethods.current.clear === composer.clear && @bb/app:lint: : ^^^^^^^^^^^^^^|^^^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 272 | initialMethods.current.setTextEffect === composer.setTextEffect; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/plugin/plugin-slot-mounts.test.tsx:272:9] @bb/app:lint: 271 | initialMethods.current.clear === composer.clear && @bb/app:lint: 272 | initialMethods.current.setTextEffect === composer.setTextEffect; @bb/app:lint: : ^^^^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 273 | return ( @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/plugin/plugin-slot-mounts.test.tsx:719:15] @bb/app:lint: 718 | const draftRef = useRef(draft); @bb/app:lint: 719 | draftRef.current = draft; @bb/app:lint: : ^^^^|^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 720 | const subscribeDraft = useComposerHostDraftNotifier(draft); @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/plugin/plugin-slot-mounts.test.tsx:933:15] @bb/app:lint: 932 | const draftRef = useRef(draft); @bb/app:lint: 933 | draftRef.current = draft; @bb/app:lint: : ^^^^|^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 934 | const subscribeDraft = useComposerHostDraftNotifier(draft); @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/thread/toc/ThreadTableOfContents.tsx:317:7] @bb/app:lint: 312 | @bb/app:lint: 313 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 314 | const host = @bb/app:lint: 315 | rootElement?.closest("[data-scroll-overlay]") ?? null; @bb/app:lint: 316 | if (typeof ResizeObserver === "undefined") { @bb/app:lint: 317 | setVisible(true); @bb/app:lint: : ^^^^^|^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 318 | return; @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/toc/ThreadTableOfContents.tsx:567:14] @bb/app:lint: 566 | const hasOlderRef = useRef(hasOlderTimelineRows); @bb/app:lint: 567 | hasOlderRef.current = hasOlderTimelineRows; @bb/app:lint: : ^^^^^|^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 568 | const loadOlderRef = useRef(loadOlderTimelineRows); @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/toc/ThreadTableOfContents.tsx:569:15] @bb/app:lint: 568 | const loadOlderRef = useRef(loadOlderTimelineRows); @bb/app:lint: 569 | loadOlderRef.current = loadOlderTimelineRows; @bb/app:lint: : ^^^^^^|^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 570 | const jumpInProgressRef = useRef(false); @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(immutability): Cannot reassign variable after render completes @bb/app:lint: ,-[src/components/plugin/plugin-detail-opener.tsx:41:9] @bb/app:lint: 31 | const deferred = useMemo(() => { @bb/app:lint: 32 | let current: PluginDetailOpener | null = null; @bb/app:lint: : ^^^|^^^ @bb/app:lint: : `-- `current` is declared here @bb/app:lint: 33 | const pending: PluginDetailDestination[] = []; @bb/app:lint: 34 | return { @bb/app:lint: 35 | open(destination: PluginDetailDestination) { @bb/app:lint: 36 | if (current !== null) return current(destination); @bb/app:lint: 37 | pending.push(destination); @bb/app:lint: 38 | return true; @bb/app:lint: 39 | }, @bb/app:lint: 40 | register(open: PluginDetailOpener) { @bb/app:lint: 41 | current = open; @bb/app:lint: : ^^^|^^^ @bb/app:lint: : `-- Cannot reassign `current` after render completes @bb/app:lint: 42 | for (const destination of pending.splice(0)) open(destination); @bb/app:lint: `---- @bb/app:lint: help: Reassigning `current` after render has completed can cause inconsistent behavior on subsequent renders. Consider using state instead @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability @bb/app:lint: @bb/app:lint: ! react(immutability): This value cannot be modified @bb/app:lint: ,-[src/components/promptbox/composer-selection-settle.ts:104:3] @bb/app:lint: 103 | })); @bb/app:lint: 104 | controller.version = version; @bb/app:lint: : ^^^^^|^^^^ @bb/app:lint: : `-- value cannot be modified @bb/app:lint: 105 | const state = buildState(version); @bb/app:lint: `---- @bb/app:lint: help: Modifying a value returned from 'useState()', which should not be modified directly. Use the setter function to update instead @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability @bb/app:lint: @bb/app:lint: ! react(purity): Cannot call impure function during render @bb/app:lint: ,-[src/components/settings/MachinesSettingsSection.tsx:233:15] @bb/app:lint: 232 | @bb/app:lint: 233 | const now = Date.now(); @bb/app:lint: : ^^^^^|^^^^ @bb/app:lint: : `-- Cannot call impure function @bb/app:lint: 234 | const primaryHostPlatform = systemConfig.data?.primaryHostPlatform ?? null; @bb/app:lint: `---- @bb/app:lint: help: `Date.now` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/hooks/useAudioInputDevices.ts:129:5] @bb/app:lint: 126 | @bb/app:lint: 127 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 128 | const mediaDevices = getMediaDevices(); @bb/app:lint: 129 | setIsSupported(mediaDevices !== null); @bb/app:lint: : ^^^^^^^|^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 130 | if (mediaDevices === null) { @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/ui/disclosure.tsx:326:13] @bb/app:lint: 325 | : isClosing @bb/app:lint: 326 | ? renderedBodyRef.current @bb/app:lint: : ^^^^^^^^^^^|^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 327 | : null; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/ui/disclosure.tsx:326:13] @bb/app:lint: 325 | : isClosing @bb/app:lint: 326 | ? renderedBodyRef.current @bb/app:lint: : ^^^^^^^^^^^|^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 327 | : null; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/ui/pan-zoom.ts:399:7] @bb/app:lint: 396 | @bb/app:lint: 397 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 398 | if (!enabled) { @bb/app:lint: 399 | resetView(); @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 400 | } @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/hooks/useAppSettingsRouteMemory.ts:129:40] @bb/app:lint: 128 | @bb/app:lint: 129 | return resolveAppSettingsRouteMemory(memoryRef.current, route); @bb/app:lint: : ^^^^^^^^|^^^^^^^^ @bb/app:lint: : `-- Passing a ref to a function may read its value during render @bb/app:lint: 130 | } @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/secondary-panel/ThreadSecondaryPanel.stories.tsx:138:5] @bb/app:lint: 136 | const [panel, setPanel] = useState(initialPanel); @bb/app:lint: 137 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 138 | setPanel(initialPanel); @bb/app:lint: : ^^^^|^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 139 | }, [initialPanel]); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/secondary-panel/ThreadSecondaryPanel.stories.tsx:406:5] @bb/app:lint: 404 | ); @bb/app:lint: 405 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 406 | setOpenTerminals(terminals); @bb/app:lint: : ^^^^^^^^|^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 407 | setActiveTerminalId(initialActiveTerminalId); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(preserve-manual-memoization): Existing memoization could not be preserved @bb/app:lint: ,-[src/views/ProjectDetailSettingsView.tsx:218:56] @bb/app:lint: 217 | const projectSources = project?.sources; @bb/app:lint: 218 | const sources = useMemo(() => projectSources ?? [], [projectSources]); @bb/app:lint: : ^^^^^^^|^^^^^^ @bb/app:lint: : `-- This dependency may be modified later @bb/app:lint: 219 | const projectName = project?.name ?? ""; @bb/app:lint: `---- @bb/app:lint: help: React Compiler has skipped optimizing this component because the existing manual memoization could not be preserved. This dependency may be mutated later, which could cause the value to change unexpectedly @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization @bb/app:lint: @bb/app:lint: ! react(preserve-manual-memoization): Existing memoization could not be preserved @bb/app:lint: ,-[src/views/ProjectDetailSettingsView.tsx:292:39] @bb/app:lint: 291 | }, @bb/app:lint: 292 | [localSourcePicker, pickerHostId, project], @bb/app:lint: : ^^^|^^^ @bb/app:lint: : `-- This dependency may be modified later @bb/app:lint: 293 | ); @bb/app:lint: `---- @bb/app:lint: help: React Compiler has skipped optimizing this component because the existing manual memoization could not be preserved. This dependency may be mutated later, which could cause the value to change unexpectedly @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization @bb/app:lint: @bb/app:lint: ! react(preserve-manual-memoization): Existing memoization could not be preserved @bb/app:lint: ,-[src/views/ProjectDetailSettingsView.tsx:273:21] @bb/app:lint: 272 | @bb/app:lint: 273 | const openSetUp = useCallback( @bb/app:lint: : ^^^^^|^^^^^ @bb/app:lint: : `-- Manual memoization is not preserved here @bb/app:lint: 274 | (host: Host) => { @bb/app:lint: : | @bb/app:lint: : `-- Manual memoization callback starts here @bb/app:lint: 275 | if (!project) return; @bb/app:lint: `---- @bb/app:lint: help: React Compiler could not prove that this useMemo/useCallback remains memoized. Fix related React Compiler errors inside the callback first. If manual memoization is not required for semantics, remove it; otherwise restructure the callback to avoid values that invalidate memoization @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization @bb/app:lint: @bb/app:lint: ! react(purity): Cannot call impure function during render @bb/app:lint: ,-[src/views/ProjectDetailSettingsView.tsx:338:15] @bb/app:lint: 337 | )?.label ?? defaults.permissionMode); @bb/app:lint: 338 | const now = Date.now(); @bb/app:lint: : ^^^^^|^^^^ @bb/app:lint: : `-- Cannot call impure function @bb/app:lint: 339 | @bb/app:lint: `---- @bb/app:lint: help: `Date.now` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/lib/plugin-code-theme.ts:41:7] @bb/app:lint: 37 | @bb/app:lint: 38 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 39 | const cached = cache.get(name); @bb/app:lint: 40 | if (cached !== undefined) { @bb/app:lint: 41 | setTheme(cached); @bb/app:lint: : ^^^^|^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 42 | return; @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/ThreadTitleMentions.tsx:245:18] @bb/app:lint: 244 | @bb/app:lint: 245 | flushPendingRef.current = () => { @bb/app:lint: : ^^^^^^^|^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 246 | const threadIds = [...pendingIdsRef.current].slice( @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(immutability): Cannot reassign variable after render completes @bb/app:lint: ,-[src/components/thread/ThreadTitleMentions.tsx:936:5] @bb/app:lint: 932 | const resources = useContext(ThreadTitleMentionResourcesContext); @bb/app:lint: 933 | let offset = 0; @bb/app:lint: : ^^^|^^ @bb/app:lint: : `-- `offset` is declared here @bb/app:lint: 934 | return threadTitleTextSegments(title, resources).map((segment, index) => { @bb/app:lint: 935 | const segmentOffset = offset; @bb/app:lint: 936 | offset += (segment.serializedText ?? segment.text).length; @bb/app:lint: : ^^^|^^ @bb/app:lint: : `-- Cannot reassign `offset` after render completes @bb/app:lint: 937 | return segment.unresolvedThreadId !== null && @bb/app:lint: `---- @bb/app:lint: help: Reassigning `offset` after render has completed can cause inconsistent behavior on subsequent renders. Consider using state instead @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/immutability @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/thread/timeline/Streaming.stories.tsx:54:5] @bb/app:lint: 52 | const [step, setStep] = useState(0); @bb/app:lint: 53 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 54 | setStep(0); @bb/app:lint: : ^^^|^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 55 | if (totalSteps === 0) return; @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/thread/ThreadActionsMenu.tsx:322:27] @bb/app:lint: 320 | ); @bb/app:lint: 321 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 322 | if (dragging && open) handleOpenChange(false); @bb/app:lint: : ^^^^^^^^|^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 323 | }, [dragging, handleOpenChange, open]); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/ThreadActionsMenu.tsx:103:17] @bb/app:lint: 102 | }, [hostClassName]); @bb/app:lint: 103 | ,-> return render({ @bb/app:lint: 104 | | ...props, @bb/app:lint: 105 | | ref: (node: HTMLButtonElement | null) => { @bb/app:lint: 106 | | element.current = node; @bb/app:lint: 107 | | if (typeof ref === "function") ref(node); @bb/app:lint: 108 | | else if (ref !== null) ref.current = node; @bb/app:lint: 109 | | }, @bb/app:lint: 110 | |-> }); @bb/app:lint: : `---- Passing a ref to a function may read its value during render @bb/app:lint: 111 | }); @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(purity): Cannot call impure function during render @bb/app:lint: ,-[src/views/MachineSettingsView.tsx:344:15] @bb/app:lint: 343 | @bb/app:lint: 344 | const now = Date.now(); @bb/app:lint: : ^^^^^|^^^^ @bb/app:lint: : `-- Cannot call impure function @bb/app:lint: 345 | const platformLabel = @bb/app:lint: `---- @bb/app:lint: help: `Date.now` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/hooks/queries/connection-aware-query-state.ts:68:7] @bb/app:lint: 65 | @bb/app:lint: 66 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 67 | if (connectionState === "connected") { @bb/app:lint: 68 | setElapsed(false); @bb/app:lint: : ^^^^^|^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 69 | return; @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/timeline/SelectableMessageProse.tsx:663:14] @bb/app:lint: 662 | const onSelectRef = useRef(onSelect); @bb/app:lint: 663 | onSelectRef.current = onSelect; @bb/app:lint: : ^^^^^|^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 664 | @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/plugin/management/OpenPluginGuideButton.tsx:34:5] @bb/app:lint: 31 | const installJob = usePluginInstallJob(installJobId); @bb/app:lint: 32 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 33 | if (installJob === null || isActivePluginInstallJob(installJob)) return; @bb/app:lint: 34 | setInstallJobId(null); @bb/app:lint: : ^^^^^^^|^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 35 | if (installJob.state === "succeeded") navigate(PLUGIN_GUIDE_PATH); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(preserve-manual-memoization): Existing memoization could not be preserved @bb/app:lint: ,-[src/components/promptbox/NewThreadComposer.tsx:668:5] @bb/app:lint: 664 | () => @bb/app:lint: 665 | seed?.environment === undefined @bb/app:lint: : ^^^^^^^^|^^^^^^^^ @bb/app:lint: : `-- This dependency is inferred here @bb/app:lint: 666 | ? null @bb/app:lint: 667 | : newThreadEnvironmentArgsToSeed(seed.environment), @bb/app:lint: 668 | [seed?.environment], @bb/app:lint: : ^^^^^^^^^|^^^^^^^^^ @bb/app:lint: : `-- This dependency list does not match the dependencies inferred from the callback @bb/app:lint: 669 | ); @bb/app:lint: `---- @bb/app:lint: help: React Compiler has skipped optimizing this component because the existing manual memoization could not be preserved. The inferred dependencies did not match the manually specified dependencies, which could cause the value to change more or less frequently than expected. The inferred dependency was `seed`, but the source dependencies were [seed?.environment]. Inferred less specific @bb/app:lint: property than source @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization @bb/app:lint: @bb/app:lint: ! react(preserve-manual-memoization): Existing memoization could not be preserved @bb/app:lint: ,-[src/components/promptbox/NewThreadComposer.tsx:1717:5] @bb/app:lint: 1687 | isSubmittingRef.current = true; @bb/app:lint: 1688 | setIsSubmitting(true); @bb/app:lint: : ^^^^^^^|^^^^^^^ @bb/app:lint: : `-- This dependency is inferred here @bb/app:lint: 1689 | setAttachmentError(null); @bb/app:lint: 1690 | const clearedSubmittedDraft = @bb/app:lint: 1691 | promptDraft.clearIfCurrentMatches(submittedDraft); @bb/app:lint: 1692 | recordTelemetryEvent({ @bb/app:lint: 1693 | name: "new_thread_submit", @bb/app:lint: 1694 | properties: { outcome: "started" }, @bb/app:lint: 1695 | }); @bb/app:lint: 1696 | try { @bb/app:lint: 1697 | await onSubmit(request); @bb/app:lint: 1698 | recordTelemetryEvent({ @bb/app:lint: 1699 | name: "new_thread_submit", @bb/app:lint: 1700 | properties: { outcome: "accepted" }, @bb/app:lint: 1701 | }); @bb/app:lint: 1702 | clearReuseEnvironment(); @bb/app:lint: 1703 | } catch (submitError) { @bb/app:lint: 1704 | recordTelemetryEvent({ @bb/app:lint: 1705 | name: "new_thread_submit", @bb/app:lint: 1706 | properties: { outcome: "failed" }, @bb/app:lint: 1707 | }); @bb/app:lint: 1708 | if (clearedSubmittedDraft) { @bb/app:lint: 1709 | promptDraft.restoreIfEmpty(submittedDraft); @bb/app:lint: 1710 | } @bb/app:lint: 1711 | throw submitError; @bb/app:lint: 1712 | } finally { @bb/app:lint: 1713 | isSubmittingRef.current = false; @bb/app:lint: 1714 | setIsSubmitting(false); @bb/app:lint: 1715 | } @bb/app:lint: 1716 | }, @bb/app:lint: 1717 | ,-> [ @bb/app:lint: 1718 | | clearReuseEnvironment, @bb/app:lint: 1719 | | executionInputSources, @bb/app:lint: 1720 | | onSubmit, @bb/app:lint: 1721 | | permissionMode, @bb/app:lint: 1722 | | projectDefaultsUnavailable, @bb/app:lint: 1723 | | projectId, @bb/app:lint: 1724 | | promptDraft, @bb/app:lint: 1725 | | reasoningLevel, @bb/app:lint: 1726 | | seededExecutionInputSources, @bb/app:lint: 1727 | | submissionReadinessReason, @bb/app:lint: 1728 | | submissionEnvironment, @bb/app:lint: 1729 | | selectedProviderId, @bb/app:lint: 1730 | | selectedThreadModel, @bb/app:lint: 1731 | | serviceTier, @bb/app:lint: 1732 | | sessionOptionSelections, @bb/app:lint: 1733 | | supportsServiceTier, @bb/app:lint: 1734 | |-> ], @bb/app:lint: : `---- This dependency list does not match the dependencies inferred from the callback @bb/app:lint: 1735 | ); @bb/app:lint: `---- @bb/app:lint: help: React Compiler has skipped optimizing this component because the existing manual memoization could not be preserved. The inferred dependencies did not match the manually specified dependencies, which could cause the value to change more or less frequently than expected. The inferred dependency was `setIsSubmitting`, but the source dependencies were [clearReuseEnvironment, @bb/app:lint: executionInputSources, onSubmit, permissionMode, projectDefaultsUnavailable, projectId, promptDraft, reasoningLevel, seededExecutionInputSources, submissionReadinessReason, submissionEnvironment, selectedProviderId, selectedThreadModel, serviceTier, sessionOptionSelections, supportsServiceTier]. Inferred different dependency than source @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization @bb/app:lint: @bb/app:lint: ! react(preserve-manual-memoization): Existing memoization could not be preserved @bb/app:lint: ,-[src/components/promptbox/NewThreadComposer.tsx:1717:5] @bb/app:lint: 1688 | setIsSubmitting(true); @bb/app:lint: 1689 | setAttachmentError(null); @bb/app:lint: : ^^^^^^^^^|^^^^^^^^ @bb/app:lint: : `-- This dependency is inferred here @bb/app:lint: 1690 | const clearedSubmittedDraft = @bb/app:lint: 1691 | promptDraft.clearIfCurrentMatches(submittedDraft); @bb/app:lint: 1692 | recordTelemetryEvent({ @bb/app:lint: 1693 | name: "new_thread_submit", @bb/app:lint: 1694 | properties: { outcome: "started" }, @bb/app:lint: 1695 | }); @bb/app:lint: 1696 | try { @bb/app:lint: 1697 | await onSubmit(request); @bb/app:lint: 1698 | recordTelemetryEvent({ @bb/app:lint: 1699 | name: "new_thread_submit", @bb/app:lint: 1700 | properties: { outcome: "accepted" }, @bb/app:lint: 1701 | }); @bb/app:lint: 1702 | clearReuseEnvironment(); @bb/app:lint: 1703 | } catch (submitError) { @bb/app:lint: 1704 | recordTelemetryEvent({ @bb/app:lint: 1705 | name: "new_thread_submit", @bb/app:lint: 1706 | properties: { outcome: "failed" }, @bb/app:lint: 1707 | }); @bb/app:lint: 1708 | if (clearedSubmittedDraft) { @bb/app:lint: 1709 | promptDraft.restoreIfEmpty(submittedDraft); @bb/app:lint: 1710 | } @bb/app:lint: 1711 | throw submitError; @bb/app:lint: 1712 | } finally { @bb/app:lint: 1713 | isSubmittingRef.current = false; @bb/app:lint: 1714 | setIsSubmitting(false); @bb/app:lint: 1715 | } @bb/app:lint: 1716 | }, @bb/app:lint: 1717 | ,-> [ @bb/app:lint: 1718 | | clearReuseEnvironment, @bb/app:lint: 1719 | | executionInputSources, @bb/app:lint: 1720 | | onSubmit, @bb/app:lint: 1721 | | permissionMode, @bb/app:lint: 1722 | | projectDefaultsUnavailable, @bb/app:lint: 1723 | | projectId, @bb/app:lint: 1724 | | promptDraft, @bb/app:lint: 1725 | | reasoningLevel, @bb/app:lint: 1726 | | seededExecutionInputSources, @bb/app:lint: 1727 | | submissionReadinessReason, @bb/app:lint: 1728 | | submissionEnvironment, @bb/app:lint: 1729 | | selectedProviderId, @bb/app:lint: 1730 | | selectedThreadModel, @bb/app:lint: 1731 | | serviceTier, @bb/app:lint: 1732 | | sessionOptionSelections, @bb/app:lint: 1733 | | supportsServiceTier, @bb/app:lint: 1734 | |-> ], @bb/app:lint: : `---- This dependency list does not match the dependencies inferred from the callback @bb/app:lint: 1735 | ); @bb/app:lint: `---- @bb/app:lint: help: React Compiler has skipped optimizing this component because the existing manual memoization could not be preserved. The inferred dependencies did not match the manually specified dependencies, which could cause the value to change more or less frequently than expected. The inferred dependency was `setAttachmentError`, but the source dependencies were [clearReuseEnvironment, @bb/app:lint: executionInputSources, onSubmit, permissionMode, projectDefaultsUnavailable, projectId, promptDraft, reasoningLevel, seededExecutionInputSources, submissionReadinessReason, submissionEnvironment, selectedProviderId, selectedThreadModel, serviceTier, sessionOptionSelections, supportsServiceTier]. Inferred different dependency than source @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/ui/bottom-anchored-scroll-body.tsx:130:5] @bb/app:lint: 129 | const [positionKeeper] = useState( @bb/app:lint: 130 | ,-> () => @bb/app:lint: 131 | | new ScrollPositionKeeper({ @bb/app:lint: 132 | | bottomThresholdPx: BOTTOM_ANCHOR_THRESHOLD_PX, @bb/app:lint: 133 | | deferWritesWhileScrolling: isIOSWebKit(navigator), @bb/app:lint: 134 | | getContentElement: () => pageContentRef.current, @bb/app:lint: 135 | | getFloorElement: () => scrollFloorRef.current, @bb/app:lint: 136 | | getFooterElement: () => scrollFooterRef.current, @bb/app:lint: 137 | | getScrollElement: () => scrollAreaRef.current, @bb/app:lint: 138 | | getTopLevelRows, @bb/app:lint: 139 | | initiallyAttached: true, @bb/app:lint: 140 | |-> }), @bb/app:lint: : `---- Passing a ref to a function may read its value during render @bb/app:lint: 141 | ); @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/plugin/PluginSettings.tsx:344:7] @bb/app:lint: 341 | @bb/app:lint: 342 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 343 | if (!draftState.hasNewerDraft && !save.isPending && !save.isError) { @bb/app:lint: 344 | setDraftState({ value: initialDraft, hasNewerDraft: false }); @bb/app:lint: : ^^^^^^|^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 345 | } @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/promptbox/MicrophonePreferences.tsx:30:5] @bb/app:lint: 25 | @bb/app:lint: 26 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 27 | if (!open || !isSupported) return; @bb/app:lint: 28 | let disposed = false; @bb/app:lint: 29 | let acquired: MediaStream | null = null; @bb/app:lint: 30 | setError(null); @bb/app:lint: : ^^^^|^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 31 | setTestStream(null); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(preserve-manual-memoization): Existing memoization could not be preserved @bb/app:lint: ,-[src/components/promptbox/VoiceInputButton.tsx:21:5] @bb/app:lint: 19 | const handleCaptureReady = useCallback( @bb/app:lint: 20 | () => setRecoveredWarning(warning), @bb/app:lint: : ^^^^^^^^^|^^^^^^^^^ @bb/app:lint: : `-- This dependency is inferred here @bb/app:lint: 21 | [warning], @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This dependency list does not match the dependencies inferred from the callback @bb/app:lint: 22 | ); @bb/app:lint: `---- @bb/app:lint: help: React Compiler has skipped optimizing this component because the existing manual memoization could not be preserved. The inferred dependencies did not match the manually specified dependencies, which could cause the value to change more or less frequently than expected. The inferred dependency was `setRecoveredWarning`, but the source dependencies were [warning]. Inferred different @bb/app:lint: dependency than source @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/preserve-manual-memoization @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/views/thread-detail/SplitWorkspaceSecondaryPanelHost.tsx:107:7] @bb/app:lint: 94 | @bb/app:lint: 95 | useLayoutEffect(() => { @bb/app:lint: : ^^^^^^^|^^^^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 96 | if (model === null) { @bb/app:lint: 97 | lastTargetRef.current = null; @bb/app:lint: 98 | return; @bb/app:lint: 99 | } @bb/app:lint: 100 | const previousTarget = lastTargetRef.current; @bb/app:lint: 101 | lastTargetRef.current = { @bb/app:lint: 102 | paneId: focusedPaneId, @bb/app:lint: 103 | contentKey: model.contentKey, @bb/app:lint: 104 | isOpen: model.isOpen, @bb/app:lint: 105 | }; @bb/app:lint: 106 | if (isPanelVisible === null) { @bb/app:lint: 107 | setIsPanelVisible(model.isOpen); @bb/app:lint: : ^^^^^^^^|^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 108 | return; @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/lib/use-desktop-browser-reveal.ts:40:5] @bb/app:lint: 30 | @bb/app:lint: 31 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 32 | if ( @bb/app:lint: 33 | !isFocused || @bb/app:lint: 34 | pending === null || @bb/app:lint: 35 | pending.threadId !== threadId || @bb/app:lint: 36 | !browserTabs.some((tab) => tab.id === pending.tabId) @bb/app:lint: 37 | ) @bb/app:lint: 38 | return; @bb/app:lint: 39 | activateTab(pending.tabId); @bb/app:lint: 40 | setPending(null); @bb/app:lint: : ^^^^^|^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 41 | }, [isFocused, threadId, pending, browserTabs, activateTab]); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/ui/markdown-mermaid-diagram.tsx:375:7] @bb/app:lint: 359 | @bb/app:lint: 360 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 361 | if (!hasEnteredViewport) { @bb/app:lint: 362 | return; @bb/app:lint: 363 | } @bb/app:lint: 364 | const cacheKey = buildMermaidRenderCacheKey({ @bb/app:lint: 365 | appThemeEpoch, @bb/app:lint: 366 | preferredTheme, @bb/app:lint: 367 | source, @bb/app:lint: 368 | }); @bb/app:lint: 369 | const cachedDiagram = readMermaidRenderCache(cacheKey); @bb/app:lint: 370 | const isSourceUpdate = @bb/app:lint: 371 | renderedSourceRef.current !== null && @bb/app:lint: 372 | renderedSourceRef.current !== source; @bb/app:lint: 373 | renderedSourceRef.current = source; @bb/app:lint: 374 | if (cachedDiagram !== null) { @bb/app:lint: 375 | setRenderState((currentState) => @bb/app:lint: : ^^^^^^^|^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 376 | currentState.kind === "rendered" && @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/dialogs/ProjectPathDialog.tsx:214:5] @bb/app:lint: 212 | @bb/app:lint: 213 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 214 | setValidationMessage(null); @bb/app:lint: : ^^^^^^^^^^|^^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 215 | }, [selectedPath]); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/views/thread-detail/ThreadScreen.tsx:369:5] @bb/app:lint: 364 | !sentMessageEditTargetStillPresent; @bb/app:lint: 365 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 366 | if (!shouldDiscardMissingSentMessageEdit) { @bb/app:lint: 367 | return; @bb/app:lint: 368 | } @bb/app:lint: 369 | setSentMessageEditHostElement(null); @bb/app:lint: : ^^^^^^^^^^^^^^|^^^^^^^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 370 | setSentMessageEditSession(null); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:1017:5] @bb/app:lint: 1013 | @bb/app:lint: 1014 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 1015 | copySelectedText(""); @bb/app:lint: 1016 | touchFocusGestureRef.current = null; @bb/app:lint: 1017 | setActiveSelection(null); @bb/app:lint: : ^^^^^^^^^|^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 1018 | updateHoveredTerminalLink(null); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:731:18] @bb/app:lint: 730 | const copyOnSelectRef = useRef(false); @bb/app:lint: 731 | copyOnSelectRef.current = @bb/app:lint: : ^^^^^^^|^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 732 | systemConfig.data?.generalSettings.terminalCopyOnSelect === true; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:748:15] @bb/app:lint: 747 | @bb/app:lint: 748 | autoFocusRef.current = autoFocus; @bb/app:lint: : ^^^^^^|^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 749 | isPanelOpenRef.current = isPanelOpen; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:749:17] @bb/app:lint: 748 | autoFocusRef.current = autoFocus; @bb/app:lint: 749 | isPanelOpenRef.current = isPanelOpen; @bb/app:lint: : ^^^^^^^|^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 750 | sessionStatusRef.current = session.status; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:750:19] @bb/app:lint: 749 | isPanelOpenRef.current = isPanelOpen; @bb/app:lint: 750 | sessionStatusRef.current = session.status; @bb/app:lint: : ^^^^^^^^|^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 751 | sessionRef.current = session; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:751:13] @bb/app:lint: 750 | sessionStatusRef.current = session.status; @bb/app:lint: 751 | sessionRef.current = session; @bb/app:lint: : ^^^^^|^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 752 | onAutoFocusHandledRef.current = onAutoFocusHandled; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:752:24] @bb/app:lint: 751 | sessionRef.current = session; @bb/app:lint: 752 | onAutoFocusHandledRef.current = onAutoFocusHandled; @bb/app:lint: : ^^^^^^^^^^|^^^^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 753 | onOpenLinkRef.current = effectiveOnOpenLink; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:753:16] @bb/app:lint: 752 | onAutoFocusHandledRef.current = onAutoFocusHandled; @bb/app:lint: 753 | onOpenLinkRef.current = effectiveOnOpenLink; @bb/app:lint: : ^^^^^^|^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 754 | onSessionChangeRef.current = onSessionChange; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:754:21] @bb/app:lint: 753 | onOpenLinkRef.current = effectiveOnOpenLink; @bb/app:lint: 754 | onSessionChangeRef.current = onSessionChange; @bb/app:lint: : ^^^^^^^^^|^^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 755 | onTitleChangeRef.current = onTitleChange; @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/terminal/ThreadTerminalView.tsx:755:19] @bb/app:lint: 754 | onSessionChangeRef.current = onSessionChange; @bb/app:lint: 755 | onTitleChangeRef.current = onTitleChange; @bb/app:lint: : ^^^^^^^^|^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 756 | @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/plugin/PluginPanelRightPanelHost.tsx:288:5] @bb/app:lint: 281 | ); @bb/app:lint: 282 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 283 | if (activePluginDetailId === null) return; @bb/app:lint: 284 | const catalogEntry = activePluginCatalogQuery.data?.entries.find( @bb/app:lint: 285 | (entry) => entry.pluginId === activePluginDetailId, @bb/app:lint: 286 | ); @bb/app:lint: 287 | if (catalogEntry === undefined) return; @bb/app:lint: 288 | setPluginDetailTabMetadata((current) => { @bb/app:lint: : ^^^^^^^^^^^^^|^^^^^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 289 | const previous = current[activePluginDetailId]; @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/plugin/PluginPanelRightPanelHost.tsx:653:5] @bb/app:lint: 651 | useState(null); @bb/app:lint: 652 | useLayoutEffect(() => { @bb/app:lint: : ^^^^^^^|^^^^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 653 | setTogglePortalTarget(findPluginRightPanelTogglePortal(panelStateId)); @bb/app:lint: : ^^^^^^^^^^|^^^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 654 | }, [panel, panelStateId]); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(purity): Cannot call impure function during render @bb/app:lint: ,-[src/components/notifications/NotificationCenter.tsx:157:15] @bb/app:lint: 156 | const notifications = useNotifications(); @bb/app:lint: 157 | const now = Date.now(); @bb/app:lint: : ^^^^^|^^^^ @bb/app:lint: : `-- Cannot call impure function @bb/app:lint: 158 | @bb/app:lint: `---- @bb/app:lint: help: `Date.now` is an impure function. Calling an impure function can produce unstable results that update unpredictably when the component re-renders @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/purity @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/ui/sidebar.tsx:576:9] @bb/app:lint: 573 | @bb/app:lint: 574 | React.useEffect(() => { @bb/app:lint: : ^^^^^^^|^^^^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 575 | if (openMobile) { @bb/app:lint: 576 | setSuppressMobileCloseAnimation(false); @bb/app:lint: : ^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 577 | } else { @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/lib/plugin-sidebar-navigation.ts:70:39] @bb/app:lint: 69 | const actions = useMemo( @bb/app:lint: 70 | () => guardActions(state.actions, () => mountedRef.current), @bb/app:lint: : ^^^^^^^^^^^^|^^^^^^^^^^^ @bb/app:lint: : `-- Passing a ref to a function may read its value during render @bb/app:lint: 71 | [state.actions], @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/thread/timeline/ExpandableTimelineRow.tsx:152:7] @bb/app:lint: 149 | const [collapsedPreviewActive, setCollapsedPreviewActive] = useState(false); @bb/app:lint: 150 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 151 | if (terminalAutoExpanded) { @bb/app:lint: 152 | setTerminalAutoExpandedLatch(true); @bb/app:lint: : ^^^^^^^^^^^^^^|^^^^^^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 153 | } @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/thread/timeline/ExpandableTimelineRow.tsx:162:7] @bb/app:lint: 159 | (autoExpanded || terminalAutoExpanded || terminalAutoExpandedLatch))); @bb/app:lint: 160 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 161 | if (isExpanded) { @bb/app:lint: 162 | setCollapsedPreviewActive(false); @bb/app:lint: : ^^^^^^^^^^^^|^^^^^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 163 | } @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/sidebar/SidebarFooterCustomize.tsx:169:18] @bb/app:lint: 168 | type="button" @bb/app:lint: 169 | ref={dragBindings.setActivatorNodeRef} @bb/app:lint: : ^^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 170 | {...dragBindings.attributes} @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/sidebar/SidebarFooterCustomize.tsx:170:17] @bb/app:lint: 169 | ref={dragBindings.setActivatorNodeRef} @bb/app:lint: 170 | {...dragBindings.attributes} @bb/app:lint: : ^^^^^^^^^^^|^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 171 | {...dragBindings.listeners} @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/sidebar/SidebarFooterCustomize.tsx:171:17] @bb/app:lint: 170 | {...dragBindings.attributes} @bb/app:lint: 171 | {...dragBindings.listeners} @bb/app:lint: : ^^^^^^^^^^^|^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 172 | aria-label={`Reorder ${item.label}`} @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/sidebar/SidebarFooterCustomize.tsx:223:14] @bb/app:lint: 222 | type="button" @bb/app:lint: 223 | ref={dragBindings.setActivatorNodeRef} @bb/app:lint: : ^^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 224 | {...dragBindings.attributes} @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/sidebar/SidebarFooterCustomize.tsx:224:13] @bb/app:lint: 223 | ref={dragBindings.setActivatorNodeRef} @bb/app:lint: 224 | {...dragBindings.attributes} @bb/app:lint: : ^^^^^^^^^^^|^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 225 | {...dragBindings.listeners} @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/sidebar/SidebarFooterCustomize.tsx:225:13] @bb/app:lint: 224 | {...dragBindings.attributes} @bb/app:lint: 225 | {...dragBindings.listeners} @bb/app:lint: : ^^^^^^^^^^^|^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 226 | aria-label={`Reorder ${item.label}`} @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(incompatible-library): Use of incompatible library @bb/app:lint: ,-[src/test/virtualizer-scroll-lifecycle.test.tsx:14:3] @bb/app:lint: 13 | }) { @bb/app:lint: 14 | useVirtualizer({ @bb/app:lint: : ^^^^^^^|^^^^^^ @bb/app:lint: : `-- TanStack Virtual's `useVirtualizer()` API returns functions that cannot be memoized safely @bb/app:lint: 15 | count: 100, @bb/app:lint: `---- @bb/app:lint: help: This API returns functions which cannot be memoized without leading to stale UI. To prevent this, by default React Compiler will skip memoizing this component/hook. However, you may see issues if values from this API are passed to other components/hooks that are memoized @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/hooks/useWebSocket.ts:20:32] @bb/app:lint: 19 | ); @bb/app:lint: 20 | deletedResourceRouteChangeRef.current = handleDeletedResourceRouteChange; @bb/app:lint: : ^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 21 | @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/composer/useQueuedMessageActions.ts:79:20] @bb/app:lint: 78 | const queuedMessagesRef = useRef([]); @bb/app:lint: 79 | queuedMessagesRef.current = queuedMessages; @bb/app:lint: : ^^^^^^^^|^^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 80 | @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/thread/composer/useInlineQueuedMessageEditing.ts:108:7] @bb/app:lint: 102 | ); @bb/app:lint: 103 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 104 | if ( @bb/app:lint: 105 | inlineEditingQueuedMessageState !== null && @bb/app:lint: 106 | inlineEditingQueuedMessage === null @bb/app:lint: 107 | ) { @bb/app:lint: 108 | dismissInlineQueuedMessageEditor(); @bb/app:lint: : ^^^^^^^^^^^^^^^^|^^^^^^^^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 109 | } @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/thread/composer/useInlineQueuedMessageEditing.ts:58:24] @bb/app:lint: 57 | >(new Map()); @bb/app:lint: 58 | queuedMessagesByIdRef.current = useMemo(() => { @bb/app:lint: : ^^^^^^^^^^|^^^^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 59 | const next = new Map(); @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/hooks/useVoiceInput.ts:186:5] @bb/app:lint: 184 | @bb/app:lint: 185 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 186 | setCaptureError(null); @bb/app:lint: : ^^^^^^^|^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 187 | }, [preferredAudioInputDeviceId]); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/hooks/useVoiceInput.ts:361:5] @bb/app:lint: 358 | @bb/app:lint: 359 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 360 | const support = resolveVoiceSupport(readVoiceSupportEnvironment()); @bb/app:lint: 361 | setIsSupported(support.isSupported); @bb/app:lint: : ^^^^^^^|^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 362 | setUnsupportedReason(support.reason); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(incompatible-library): Use of incompatible library @bb/app:lint: ,-[src/components/dialogs/RemotePathBrowser.tsx:122:28] @bb/app:lint: 121 | ); @bb/app:lint: 122 | const entryVirtualizer = useVirtualizer({ @bb/app:lint: : ^^^^^^^|^^^^^^ @bb/app:lint: : `-- TanStack Virtual's `useVirtualizer()` API returns functions that cannot be memoized safely @bb/app:lint: 123 | count: entries.length, @bb/app:lint: `---- @bb/app:lint: help: This API returns functions which cannot be memoized without leading to stale UI. To prevent this, by default React Compiler will skip memoizing this component/hook. However, you may see issues if values from this API are passed to other components/hooks that are memoized @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/incompatible-library @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/promptbox/banner/ThreadMachineStatus.tsx:106:18] @bb/app:lint: 105 | aria-label={`${status}. ${detail}`} @bb/app:lint: 106 | ref={focus.triggerRef} @bb/app:lint: : ^^^^^^^^|^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 107 | onClick={focus.onTriggerClick} @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/promptbox/banner/ThreadMachineStatus.tsx:107:22] @bb/app:lint: 106 | ref={focus.triggerRef} @bb/app:lint: 107 | onClick={focus.onTriggerClick} @bb/app:lint: : ^^^^^^^^^^|^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 108 | className={cn( @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/promptbox/banner/ThreadMachineStatus.tsx:147:24] @bb/app:lint: 146 | collapseLabel="Collapse machine status" @bb/app:lint: 147 | collapseRef={focus.collapseRef} @bb/app:lint: : ^^^^^^^^|^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 148 | onCollapse={focus.onCollapseClick} @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/promptbox/banner/ThreadMachineStatus.tsx:148:23] @bb/app:lint: 147 | collapseRef={focus.collapseRef} @bb/app:lint: 148 | onCollapse={focus.onCollapseClick} @bb/app:lint: : ^^^^^^^^^^|^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 149 | > @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/thread/timeline/ConversationAttachments.tsx:135:5] @bb/app:lint: 130 | @bb/app:lint: 131 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 132 | if (expandedImageIndex === null || expandedImageIndex < imageItems.length) { @bb/app:lint: 133 | return; @bb/app:lint: 134 | } @bb/app:lint: 135 | setExpandedImageIndex(null); @bb/app:lint: : ^^^^^^^^^^|^^^^^^^^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 136 | }, [expandedImageIndex, imageItems.length]); @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(set-state-in-effect): Calling setState synchronously within an effect can trigger cascading renders @bb/app:lint: ,-[src/components/sidebar/PluginThreadList.stories.tsx:146:5] @bb/app:lint: 118 | const [ready, setReady] = useState(false); @bb/app:lint: 119 | useEffect(() => { @bb/app:lint: : ^^^^|^^^^ @bb/app:lint: : `-- This is the containing effect @bb/app:lint: 120 | const preferences = { ...initial }; @bb/app:lint: 121 | const prefix = `/api/v1/plugins/${THREAD_LIST_PLUGIN_ID}/rpc/`; @bb/app:lint: 122 | const originalFetch = globalThis.fetch; @bb/app:lint: 123 | globalThis.fetch = async (input, init) => { @bb/app:lint: 124 | const url = @bb/app:lint: 125 | typeof input === "string" @bb/app:lint: 126 | ? input @bb/app:lint: 127 | : input instanceof URL @bb/app:lint: 128 | ? input.href @bb/app:lint: 129 | : input.url; @bb/app:lint: 130 | const method = url.includes(prefix) ? url.split(prefix)[1] : null; @bb/app:lint: 131 | const reply = (result: unknown) => @bb/app:lint: 132 | new Response(JSON.stringify({ ok: true, result }), { @bb/app:lint: 133 | headers: { "content-type": "application/json" }, @bb/app:lint: 134 | }); @bb/app:lint: 135 | if (method === "listPreferences") return reply({ preferences }); @bb/app:lint: 136 | if (method === "setPreference" && typeof init?.body === "string") { @bb/app:lint: 137 | const { key, value } = JSON.parse(init.body) as { @bb/app:lint: 138 | key: string; @bb/app:lint: 139 | value: unknown; @bb/app:lint: 140 | }; @bb/app:lint: 141 | preferences[key] = value; @bb/app:lint: 142 | return reply({ key, value }); @bb/app:lint: 143 | } @bb/app:lint: 144 | return originalFetch(input, init); @bb/app:lint: 145 | }; @bb/app:lint: 146 | setReady(true); @bb/app:lint: : ^^^^|^^^ @bb/app:lint: : `-- Avoid calling setState() directly within an effect @bb/app:lint: 147 | return () => { @bb/app:lint: `---- @bb/app:lint: help: Effects should synchronize React with external systems. Calling setState synchronously inside an effect starts another render and is usually unnecessary. Derive the value during render, initialize state directly, or update it from the event that caused the change. Use an effect only when synchronizing with an external system. @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/set-state-in-effect @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/dialogs/ProviderCliInstallLogDialog.tsx:37:21] @bb/app:lint: 36 | if (state !== null) { @bb/app:lint: 37 | renderedStateRef.current = state; @bb/app:lint: : ^^^^^^^^|^^^^^^^^^^^|^^^ @bb/app:lint: : | `-- Cannot update ref value during render @bb/app:lint: : `-- This value is a ref @bb/app:lint: 38 | } @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/dialogs/ProviderCliInstallLogDialog.tsx:40:33] @bb/app:lint: 39 | @bb/app:lint: 40 | const currentState = state ?? renderedStateRef.current; @bb/app:lint: : ^^^^^^^^^^^^|^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 41 | @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/dialogs/ProviderCliInstallLogDialog.tsx:40:33] @bb/app:lint: 39 | @bb/app:lint: 40 | const currentState = state ?? renderedStateRef.current; @bb/app:lint: : ^^^^^^^^^^^^|^^^^^^^^^^^ @bb/app:lint: : `-- Cannot access ref value during render @bb/app:lint: 41 | @bb/app:lint: `---- @bb/app:lint: help: React refs are values that are not needed for rendering. Refs should only be accessed outside of render, such as in event handlers or effects. Accessing a ref value (the `current` property) during render can cause your component not to update as expected @bb/app:lint: note: React Compiler skipped optimizing this component or hook. Additional guidance: https://react.dev/reference/eslint-plugin-react-hooks/lints/refs @bb/app:lint: @bb/app:lint: ! react(refs): Cannot access refs during render @bb/app:lint: ,-[src/components/promptbox/banner/ThreadWorkflowStack.tsx:53:18] @bb/app:lint: 52 |