-
Notifications
You must be signed in to change notification settings - Fork 50.2k
Closed as not planned
Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
Description
React version: 18.3.0-canary-5dd35968b-20231201
Steps To Reproduce
- clone https://github.com/himself65/react-hydration-error
- pnpm install && pnpm run dev
Link to code example:
import { Component } from '@/components/component'
export default function Home () {
const delayedMessage = new Promise((resolve) => {
setTimeout(() => resolve('Hello from server!'), 2000)
})
return (
<main>
<div>
<Component delayedMessage={delayedMessage}/>
</div>
</main>
)
}"use client"
export function Component ({
delayedMessage
}) {
return (
<div>
{delayedMessage}
</div>
)
}The current behavior
The expected behavior
Won't have hydration error
Metadata
Metadata
Assignees
Labels
Resolution: StaleAutomatically closed due to inactivityAutomatically closed due to inactivityStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bug
