Skip to content

Fix stale useEffect deps (bd-lsf2v5n0) - #924

Merged
shikokuchuo merged 2 commits into
mainfrom
bugfix/bd-lsf2v5n0-useeffect-phase1
Oct 27, 2026
Merged

shikokuchuo merged 2 commits into
mainfrom
bugfix/bd-lsf2v5n0-useeffect-phase1

Conversation

@shikokuchuo

@shikokuchuo shikokuchuo commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Phase 1 of claude-notes/plans/2026-10-24-hub-client-useeffect-refactor.md (bd-lsf2v5n0). Phase 2 is stacked on this branch: #925.

  • Re-seed the screen name when auth resolves after the initial load (App.tsx).
  • Clear the "Connection lost - working offline" banner on reconnect; the sync callback closed over a stale connectionError. Extracted to services/connectionHandlers.ts as the smallest testable seam.
  • Restore select-all when the share dialog opens, and clean up the timer on close. The old effect ran before the input mounted, so it never fired.
  • Replace four exhaustive-deps suppressions with honest deps; document why the remaining three stay.

The banner and select-all fixes are user-facing and have a changelog entry.

Tests: full npm run test:ci and npm run build green. Each fix landed with a regression test watched red first. Not verified in a real browser session.

@posit-snyk-bot

posit-snyk-bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

- Re-seed screen name when auth resolves after the initial load
- Clear the offline banner when the connection is restored
- Restore select-all when the share dialog opens, and clean up its timer
- Replace four exhaustive-deps suppressions with honest deps; document three

Phase 1 of claude-notes/plans/2026-10-24-hub-client-useeffect-refactor.md.
@shikokuchuo
shikokuchuo force-pushed the bugfix/bd-lsf2v5n0-useeffect-phase1 branch from 1e4de9d to 3d8286f Compare October 27, 2026 11:37
@shikokuchuo
shikokuchuo added this pull request to stack #926 October 27, 2026 11:38
@shikokuchuo
shikokuchuo merged commit 875e7fd into main Oct 27, 2026
12 checks passed
@shikokuchuo
shikokuchuo deleted the bugfix/bd-lsf2v5n0-useeffect-phase1 branch October 27, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants