Skip to content

Cancel sparse preset focus from ref cleanup - #3446

Merged
nwparker merged 1 commit into
mainfrom
nwparker/react-perf-sparse-preset-focus-cleanup
May 30, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/react-perf-sparse-preset-focus-cleanup

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Summary

  • cancel the sparse preset name-input focus frame from the input ref cleanup path
  • remove the cleanup-only mount Effect that only disposed that frame
  • reduce scoped React Effect count from 882 to 881 on this branch

Risk

Low. This is isolated sparse-preset popover focus cleanup. The create/edit handlers still schedule the same input focus/select behavior, and unmount now cancels it through the input ref. No persistence, IPC, SSH, or provider behavior changes.

Validation

  • pnpm exec oxlint src/renderer/src/components/sparse/SparseCheckoutPresetSelect.tsx
  • pnpm exec vitest run --config config/vitest.config.ts src/renderer/src/lib/sparse-preset-draft.test.ts
  • pnpm run typecheck:web
  • git diff --check

@nwparker
nwparker merged commit 9977fb1 into main May 30, 2026
2 checks passed
@nwparker
nwparker deleted the nwparker/react-perf-sparse-preset-focus-cleanup branch May 30, 2026 04:03
@nwparker nwparker added the risk:low Low risk change label May 30, 2026
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:low Low risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant