Commit 01e2bff 1 parent d9a0f9e commit 01e2bff Copy full SHA for 01e2bff
File tree 2 files changed +2
-8
lines changed
packages/react-reconciler/src
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1624,10 +1624,7 @@ function mountRef<T>(initialValue: T): {|current: T|} {
1624
1624
} ,
1625
1625
set current ( value ) {
1626
1626
if ( currentlyRenderingFiber !== null && ! didWarnAboutWrite ) {
1627
- if (
1628
- hasBeenInitialized ||
1629
- ( ! hasBeenInitialized && ! didCheckForLazyInit )
1630
- ) {
1627
+ if ( hasBeenInitialized || ! didCheckForLazyInit ) {
1631
1628
didWarnAboutWrite = true ;
1632
1629
console . warn (
1633
1630
'%s: Unsafe write of a mutable value during render.\n\n' +
Original file line number Diff line number Diff line change @@ -1624,10 +1624,7 @@ function mountRef<T>(initialValue: T): {|current: T|} {
1624
1624
} ,
1625
1625
set current ( value ) {
1626
1626
if ( currentlyRenderingFiber !== null && ! didWarnAboutWrite ) {
1627
- if (
1628
- hasBeenInitialized ||
1629
- ( ! hasBeenInitialized && ! didCheckForLazyInit )
1630
- ) {
1627
+ if ( hasBeenInitialized || ! didCheckForLazyInit ) {
1631
1628
didWarnAboutWrite = true ;
1632
1629
console . warn (
1633
1630
'%s: Unsafe write of a mutable value during render.\n\n' +
You can’t perform that action at this time.
0 commit comments