Skip to content

Ignore late ShopChangesDesk responses after unmount - #338

Merged
rqms40 merged 1 commit into
devfrom
fm/gg-web-flake-shopdesk
Nov 22, 2026
Merged

rqms40 merged 1 commit into
devfrom
fm/gg-web-flake-shopdesk

Conversation

@rqms40

@rqms40 rqms40 commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

ShopChangesDesk could update React state after unmount when its best-effort settings request or desk reload settled. In shop-changes-desk.test.tsx, settings was not mocked at all, so each render could leave a real request behind; the resolution test also waited only for the refresh to start.

Ignore results from ended mount lifetimes, including success/error/loading updates, and skip serialized refreshes that start after unmount. Mock settings in the desk tests and wait for the resolution's refreshed queue. Four controlled regressions cover late settings success/failure and late desk success/failure with a queued refresh. They fail on the original component and pass with the fix. No global error suppression or Vitest configuration changes.

Validation:

  • Before: focused file looped 20 times, 20/20 passed locally (the intermittent CI timing did not reproduce).
  • Controlled regressions before the component fix: 4 failed, 5 existing tests passed.
  • After: focused file looped 20 times, 20/20 passed, 9 tests per run, no unhandled errors.
  • Full suite: npm test -- --maxWorkers=1 — 409 files and 3,687 tests passed, no unhandled errors.
  • npm run lint — passed (0 errors; 2 existing warnings in unchanged files).
  • npm run typecheck — passed.
  • CIRCLE_NODE_TOTAL=2 npm run build — passed, including the account-address and Clerk-secret output checks.

Internal CI hygiene; no tracker issue, product rule, route, markup or styling changes.

Browser QA limitation: desktop (1440×1000) and phone (390×844) captures were planned on an isolated development server, but access to the desk could not be established. chrome-devtools-axi hit its documented pageId snapshot error; the authorized Playwright fallback reached Clerk sign-in but the dev API access check returned 401 on both attempts, so no screenshots were captured. The isolated processes were stopped and the tested source restored byte-for-byte. No rendered markup or styles changed.

GitHub CI passed on commit 23fe7b953edb44e30842c2ef8749d916d44374f8: Checks and Build image (including the container smoke test) succeeded; deployment was skipped for this branch.

@rqms40
rqms40 merged commit 594e25c into dev Nov 22, 2026
6 checks passed
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.

1 participant