Conversation
Split DailyPageView into server-rendered DailyPageContent (title, lead) and client DailyPageInteractive (Apollo-driven widgets). Prefetch runs in async DailyApolloIsland so the shell streams without blocking on LeetCode. Add shared getServerTranslationFunctions and resolvePageLocale helpers; refactor privacy page to use them. Remove unused SessionWidget. Co-authored-by: maxim.kayander1 <maxim.kayander1@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
React error #412 ('Connection closed') occurs when client navigations
consume a partial RSC payload with an uncached async child. Match the
profile page pattern: sync page export with Suspense boundaries around
DailyPageWithShell and DailyApolloIsland.
Co-authored-by: maxim.kayander1 <maxim.kayander1@gmail.com>
Co-authored-by: maxim.kayander1 <maxim.kayander1@gmail.com>
mkayander
marked this pull request as ready for review
September 7, 2026 19:14
The async server island + nested Suspense pattern is incompatible with instant=true client navigations — RSC stream closes with pending rows (React error #412). Restore the pre-refactor client DailyPageView with server-side Apollo prefetch at the page level. Keep getServerTranslationFunctions, resolvePageLocale (privacy), prefetch timeout, and DailyPageSkeleton for loading.tsx. Co-authored-by: maxim.kayander1 <maxim.kayander1@gmail.com>
getServerTranslationFunctions() broke privacy page rendering on Vercel preview (loading skeleton stuck, no h1/canonical). Revert to calling loadI18nForLocale directly from the page component. Co-authored-by: maxim.kayander1 <maxim.kayander1@gmail.com>
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.
Problem
React error #412 ("Connection closed") on
/dailyduring client-side navigation.Solution
Revert daily page to client-only pattern (pre-RSC-split):
getDailyInitialData()with 10s timeoutApolloHydrationProvider+DailyPageViewRevert privacy i18n helper extraction —
getServerTranslationFunctions()caused privacy page to stall on Vercel preview (stuck loading skeleton, E2E failures on/privacy).Kept
DailyPageSkeletonforloading.tsxTesting
/daily: no #412, page loadsloadI18nForLocalefor preview RSC compatibility