Repository navigation
Conversation
Clicking one ticket and then another while the first request was slow let the older notes/history response overwrite the newly selected ticket's detail view, or clear its loading state early. A request counter ref now lets only the latest loadDetail call update state. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0171zWziw9ByH85SW4Y3yUZM
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 11, 2026
This branch was successfully deployed
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.
Summary
Tickets.loadDetaillet every in-flight request write state. Clicking ticket A and then ticket B while A's notes/history request was slow (Render cold start can take a long time) allowed A's response to land last and show A's notes and history under B, or clear B's loading state early. A request counter ref now ensures only the latestloadDetailcall updatesnotes,history,detailErroranddetailLoading.Distinct from #56 (which only touches the
useApiResourcehook inapi.js;Tickets.jsxdoesn't use it). #44 and #61 edit labels and button attributes in the same file, so a trivial merge conflict is possible but they don't overlap this logic.Testing
npx eslint src/pages/Tickets.jsxclean.vite buildsucceeds.Generated by Claude Code