Prefetch timeline, queue, and approvals with thread bootstrap - #2935
Open
Guitaraholic wants to merge 1 commit into
Open
Prefetch timeline, queue, and approvals with thread bootstrap#2935Guitaraholic wants to merge 1 commit into
Guitaraholic wants to merge 1 commit into
Conversation
Opening a thread waited for GET /threads/:id before starting the payloads the view needs next. Start those reads in the same turn so React Query joins in-flight work instead of a second serial round. Fixes get-bb#1303
This was referenced Sep 2, 2026
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.
Human comments
What was wrong
Opening a thread waited for
GET /threads/:id?include=environment,hostto settle before starting timeline, queued messages, and pending interactions. That serial waterfall is the request-cost half of #1303. Git work-status and pull-request reads still need environment, so they stay after bootstrap.What changed
useThreadDetailBootstrapalways starts timeline, queued-message, and pending-interaction reads in the same turn as the bootstrap GET.timelinePrefetchflag. AppLayout no longer has to opt in; ThreadDetailView gets the same prefetch.GET /threads/:id/openpayload. Wire shape is unchanged.How you verified
apps/app/src/hooks/queries/thread-queries.test.tsxnow asserts timeline, queued messages, and pending interactions are requested before bootstrap settles.Fixes #1303