Bug: <Strict /> cause some unsupport usage flow work on the devlopment mode

This issue has been created since 2022-11-09.

React version: 18.2.0

Steps To Reproduce

  1. open code example and see the console
  2. when render without <Strict />, useScroll get the scrollYProgress which from full page
  3. when render with <Strict />, useScroll get the scrollYProgress which from current parent component

Link to code example: https://codesandbox.io/s/sharp-night-24h5tu?file=/src/App.js

The current behavior

because of the <Strict /> mode, cause child component useLayoutEffect get parent component ref state, and not work the same as prod mode

The expected behavior

maybe <Strict /> mode should clean ref when loop fiber tree ?

More Details About Repo
Owner Name facebook
Repo Name react
Full Name facebook/react
Language JavaScript
Created Date 2013-05-24
Updated Date 2022-12-10
Star Count 198882
Watcher Count 6638
Fork Count 41302
Issue Count 1120

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Limit the number of users that can be created in an account 3 2022-03-09 2022-11-25
Doesn't set my state equal to updated array data.. onChangeOrder. 0 2021-10-01 2022-11-25
Failed prop type: Invalid prop `decelerationRate` of value `normal` supplied to `SortableList`, expected one of [null,null] 0 2020-07-28 2022-11-25
Not working at all, totally abandoned package 3 2021-07-21 2022-11-25
r8125: TL-NG421不断抛出rss内核日志 0 2022-08-09 2022-11-29
2022.08.01打开Socat端口转发以后CPU就占用50%-70%,关闭SocatCPU占用就恢复10%以下。 3 2022-08-04 2022-11-29
bibo:status not considered as specified 1 2021-12-03 2022-11-24
[bug] Can't connect to MetaMask w/ Next.js 3 2022-01-04 2022-12-10
Build system integration to Percona Server and TerarkDB 2 2022-06-29 2022-09-19
(virtualbox) Missing new dependency on vcredist140 v14.20.27508.1 or later 1 2022-10-12 2022-12-02
xvideo 현재 연결은 원격 호스트에 의해 강제로 끊겼습니다 2 2022-10-03 2022-11-27
No running Vagrant instances found 2 2021-08-16 2022-11-13
Add mdx support documentation 1 2020-11-02 2022-12-03
Trigger auto-import feature in vim normal mode 4 2022-05-19 2022-11-13
2nd cy.wait fails when there are two cy.intercept with same alias 1 2021-04-18 2022-10-16
Undo a Rotated Object not working 2 2021-04-13 2022-09-26
createCoreService => GenericService type typescipt issue 2 2022-10-10 2022-10-13
SOC2 - GN - 81 Production replicated across AZ 6 2022-01-11 2022-09-30
Group Control Blocks sometimes don't save correctly 2 2021-09-17 2021-09-30
Collect app=csi-* pod logs running in the rook/ceph namespace 0 2022-10-17 2022-11-10
chartmuseum storage prefix should have a seperate folder 0 2022-01-18 2022-10-05
output disappears if resizing terminal? 10 2019-12-13 2022-12-02
Overflow for skip_updates in modbus sensors 0 2022-09-24 2022-10-31
AuthN/AuthZ architecture pattern of Container Apps 2 2022-05-14 2022-10-24
Add instructions for cutting a release to the repo 0 2022-01-24 2022-12-04
embed error when using pipeline with resize + watermark on small image 1 2022-06-24 2022-11-30
Mod 11 Exercise 3 Task 3 Nr 3 1 2021-06-04 2022-11-12
Development composer dependencies and php extensions (xdebug) 4 2018-09-28 2022-11-21
[Docs] Add contributor list 0 2022-02-14 2022-09-29
`world update` test should check for warnings too 0 2022-07-29 2022-10-08
Cosmos Network API: Paginated Request Error for `/cosmos/staking/v1beta1/validators/{validator_addr}/delegations` 3 2022-08-19 2022-09-14
Question: UDPA implemented using eBPF 1 2020-09-24 2022-11-26
Kernel and kernel headers version missmatch 6 2020-12-09 2022-11-11
www.cleveroad.com 0 2021-12-27 2021-12-21
keep `debug!` statements in release builds 0 2021-04-02 2022-12-08
Pages titles with special characters (diacritics) cannot be previewed when saved as a draft 6 2021-10-15 2022-10-04
Next-SSR (0.0.1-beta.12) - Consuming Chakra-UI in a Remote that shares same dependencies as the UI Host 4 2022-01-27 2022-10-18
Easy to use dataset for DALL-E 2 2021-01-11 2022-10-19
Update sbt to 1.5.3 0 2021-06-01 2022-01-01
[Bug Report] Area组件当地区码的中间两位相同时,无法正确选择 1 2022-11-08 2022-12-01
Alpha transparency colors : some are wrong 21 2015-12-19 2022-02-03
Empty auth-scheme support 0 2021-12-20 2021-12-13
Nodejs oracledb different result with query executer and direct query from DBMS 4 2022-06-02 2022-12-02
Events incorrectly registered with category 'user_annotation' instead of 'Operator' 0 2022-11-17 2022-11-30
bigtable.hbase.TestPut: testPutSameTimestamp failed 1 2021-07-13 2022-09-30
Sunsetting of the Dark Sky API 0 2022-07-12 2022-11-29
Users - api - non string value in string fields of POST request cause HTTP 500 0 2022-10-13 2022-10-14
Extension Removal Issue 3 2021-09-06 2022-11-24
Can anyone use the code provided by Ward Beullens to break the cryptocurrency abc that uses the rainbow signature that was selected for the third round of NIST PQC selection? 1 2022-04-19 2022-12-01
How do I open the samples/core/ project in Visual Studio 2019? 3 2022-02-04 2022-12-03