mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Adds a failing test proving that if the RSC response from a prefetch
contains an unresolved promise, navigating to the page will cause the
Suspense boundary wrapping the use of that promise to remain in fallback
state indefinitely.
This appears to have regressed in
e9a03ac12c, though the theory is that this
is just uncovering a React bug rather than causing the issue.
Closes #89170
10 lines
312 B
TypeScript
10 lines
312 B
TypeScript
import { ReactNode } from 'react'
|
|
import { getUser } from '../lib/get-user'
|
|
import { UserProvider } from '../user-provider'
|
|
|
|
export default function LearnLayout({ children }: { children: ReactNode }) {
|
|
const userPromise = getUser()
|
|
|
|
return <UserProvider userPromise={userPromise}>{children}</UserProvider>
|
|
}
|