mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
e5d604f33b
### React upstream changes - https://github.com/facebook/react/pull/28333 - https://github.com/facebook/react/pull/28334 - https://github.com/facebook/react/pull/28378 - https://github.com/facebook/react/pull/28377 - https://github.com/facebook/react/pull/28376 - https://github.com/facebook/react/pull/28338 - https://github.com/facebook/react/pull/28331 - https://github.com/facebook/react/pull/28336 - https://github.com/facebook/react/pull/28320 - https://github.com/facebook/react/pull/28317 - https://github.com/facebook/react/pull/28375 - https://github.com/facebook/react/pull/28367 - https://github.com/facebook/react/pull/28380 - https://github.com/facebook/react/pull/28368 - https://github.com/facebook/react/pull/28343 - https://github.com/facebook/react/pull/28355 - https://github.com/facebook/react/pull/28374 - https://github.com/facebook/react/pull/28362 - https://github.com/facebook/react/pull/28344 - https://github.com/facebook/react/pull/28339 - https://github.com/facebook/react/pull/28353 - https://github.com/facebook/react/pull/28346 - https://github.com/facebook/react/pull/25790 - https://github.com/facebook/react/pull/28352 - https://github.com/facebook/react/pull/28326 - https://github.com/facebook/react/pull/27688 - https://github.com/facebook/react/pull/28329 - https://github.com/facebook/react/pull/28332 - https://github.com/facebook/react/pull/28340 - https://github.com/facebook/react/pull/28327 - https://github.com/facebook/react/pull/28325 - https://github.com/facebook/react/pull/28324 - https://github.com/facebook/react/pull/28309 - https://github.com/facebook/react/pull/28310 - https://github.com/facebook/react/pull/28307 - https://github.com/facebook/react/pull/28306 - https://github.com/facebook/react/pull/28315 - https://github.com/facebook/react/pull/28318 - https://github.com/facebook/react/pull/28226 - https://github.com/facebook/react/pull/28308 - https://github.com/facebook/react/pull/27563 - https://github.com/facebook/react/pull/28297 - https://github.com/facebook/react/pull/28286 - https://github.com/facebook/react/pull/28284 - https://github.com/facebook/react/pull/28275 - https://github.com/facebook/react/pull/28145 - https://github.com/facebook/react/pull/28301 - https://github.com/facebook/react/pull/28224 - https://github.com/facebook/react/pull/28152 - https://github.com/facebook/react/pull/28296 - https://github.com/facebook/react/pull/28294 - https://github.com/facebook/react/pull/28279 - https://github.com/facebook/react/pull/28273 - https://github.com/facebook/react/pull/28269 - https://github.com/facebook/react/pull/28376 - https://github.com/facebook/react/pull/28338 - https://github.com/facebook/react/pull/28331 - https://github.com/facebook/react/pull/28336 - https://github.com/facebook/react/pull/28320 - https://github.com/facebook/react/pull/28317 - https://github.com/facebook/react/pull/28375 - https://github.com/facebook/react/pull/28367 - https://github.com/facebook/react/pull/28380 - https://github.com/facebook/react/pull/28368 - https://github.com/facebook/react/pull/28343 - https://github.com/facebook/react/pull/28355 - https://github.com/facebook/react/pull/28374 - https://github.com/facebook/react/pull/28362 - https://github.com/facebook/react/pull/28344 - https://github.com/facebook/react/pull/28339 - https://github.com/facebook/react/pull/28353 - https://github.com/facebook/react/pull/28346 - https://github.com/facebook/react/pull/25790 - https://github.com/facebook/react/pull/28352 - https://github.com/facebook/react/pull/28326 - https://github.com/facebook/react/pull/27688 - https://github.com/facebook/react/pull/28329 - https://github.com/facebook/react/pull/28332 - https://github.com/facebook/react/pull/28340 - https://github.com/facebook/react/pull/28327 - https://github.com/facebook/react/pull/28325 - https://github.com/facebook/react/pull/28324 - https://github.com/facebook/react/pull/28309 - https://github.com/facebook/react/pull/28310 - https://github.com/facebook/react/pull/28307 - https://github.com/facebook/react/pull/28306 - https://github.com/facebook/react/pull/28315 - https://github.com/facebook/react/pull/28318 - https://github.com/facebook/react/pull/28226 - https://github.com/facebook/react/pull/28308 - https://github.com/facebook/react/pull/27563 - https://github.com/facebook/react/pull/28297 - https://github.com/facebook/react/pull/28286 - https://github.com/facebook/react/pull/28284 - https://github.com/facebook/react/pull/28275 - https://github.com/facebook/react/pull/28145 - https://github.com/facebook/react/pull/28301 - https://github.com/facebook/react/pull/28224 - https://github.com/facebook/react/pull/28152 - https://github.com/facebook/react/pull/28296 - https://github.com/facebook/react/pull/28294 - https://github.com/facebook/react/pull/28279 - https://github.com/facebook/react/pull/28273 - https://github.com/facebook/react/pull/28269 Closes NEXT-2542 Disable ppr test for strict mode for now, @acdlite will check it and we'll sync again
13 lines
241 B
JavaScript
13 lines
241 B
JavaScript
'use client'
|
|
import { useEffect, useState } from 'react'
|
|
|
|
let i = 0
|
|
export default function Page() {
|
|
const [, forceUpdate] = useState(0)
|
|
useEffect(() => {
|
|
console.log('user:log', i++)
|
|
forceUpdate()
|
|
}, [])
|
|
return <p>{i}</p>
|
|
}
|