Repository navigation
Ignore late ShopChangesDesk responses after unmount - #338
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ShopChangesDeskcould update React state after unmount when its best-effort settings request or desk reload settled. Inshop-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:
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-axihit its documentedpageIdsnapshot 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.