fix: stop fetching request on success modal close - #1120
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @ted-palmer's task in 19s —— View job 📝 Docs Drift Check — No docs impact This PR does not touch surfaces that require a |
|
Claude finished @ted-palmer's task in 53s —— View job Code Review
Code Review — No issues found. Reviewed 2 files, ~88 lines changed. Checked for correctness, error handling, and repo guidelines compliance. The fix is correct. Root cause verified against Other checks:
|
|
…ade-after-closing-success
|
Claude finished @ted-palmer's task in 42s —— View job 📝 Docs Drift Check — No docs impact This PR does not touch surfaces that require a |
|
Claude finished @ted-palmer's task in 29s —— View job Code Review
Code Review — No issues found. Reviewed 2 files, ~88 lines changed. Checked for correctness, security, error handling, and repo guidelines compliance. The fix is correct. Root cause confirmed against Other checks:
|
| useRequests( | ||
| // Enabling this query without an id fetches an unfiltered request list, so | ||
| // `enabled` must track the filter rather than test conditions of its own. | ||
| const requestQuery = useMemo( |
There was a problem hiding this comment.
Request-query lifecycle remains unverified
- Bug
- The prior INT2-1029 finding is unknown. The attempted rendered browser test did not mount the component because its bundled React Query provider and the real
useRequestshook used different query contexts. As a result, the run observed no request URL and did not exercise the Success, Error, or close/clear request-query paths. The changed source builds{ id: requestId }only for terminal states and usesenabled: Boolean(requestQuery), but source inspection is not execution proof.
- The prior INT2-1029 finding is unknown. The attempted rendered browser test did not mount the component because its bundled React Query provider and the real
- Cause
- The verification harness failed before the real
useRequestsrequest function could run:No QueryClient set, use QueryClientProvider to set one.
- The verification harness failed before the real
- Fix
- Run the focused rendered test with a single shared
@tanstack/react-querymodule instance, then assert the real hook's emitted request URLs for Success, Error, and close/clear transitions.
- Run the focused rendered test with a single shared
No description provided.