Select stream.id in upload-status operations so the cache stays normalized #306

Merged
dean merged 1 commits from dean/upload-stream-id-fields into master 2026-07-23 02:38:08 +00:00
Member

UploadStreamWithDetails and the editUploadStream response selected
stream fields without id. Apollo cannot normalize an object with no id
selected, so every upload-service poll rewrote VideoGQL.stream as an
anonymous inline object — clobbering the id that feed/detail queries
select. Their cache reads went partial and useQuery silently fell back
to the last network result, rendered as the home feed collapsing to
the first page (and bouncing the viewport) whenever an upload was
polling.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

UploadStreamWithDetails and the editUploadStream response selected stream fields without id. Apollo cannot normalize an object with no id selected, so every upload-service poll rewrote VideoGQL.stream as an anonymous inline object — clobbering the id that feed/detail queries select. Their cache reads went partial and useQuery silently fell back to the last network result, rendered as the home feed collapsing to the first page (and bouncing the viewport) whenever an upload was polling. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
dean added 1 commit 2026-07-23 02:32:03 +00:00
Select stream.id in upload-status operations so the cache stays normalized
All checks were successful
Tests / Tests (pull_request) Successful in 11s
8441bb12e9
UploadStreamWithDetails and the editUploadStream response selected
stream fields without id. Apollo cannot normalize an object with no id
selected, so every upload-service poll rewrote VideoGQL.stream as an
anonymous inline object — clobbering the id that feed/detail queries
select. Their cache reads went partial and useQuery silently fell back
to the last network result, rendered as the home feed collapsing to
the first page (and bouncing the viewport) whenever an upload was
polling.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
dean merged commit 2886d2f5b8 into master 2026-07-23 02:38:08 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: railbird/railbird-gql#306
No description provided.