GeezerVison is showing github.com — Remove redundant setUpdatePriority call (#21127) · react/react@64983aa
File tree
Expand file treeCollapse file tree
Open diff view settings
packages/react-reconciler/src
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberHooks.new.js -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,7 +49,6 @@ import { |
49 | 49 | markRootMutableRead, |
50 | 50 | } from './ReactFiberLane.new'; |
51 | 51 | import { |
52 | | - DefaultEventPriority, |
53 | 52 | ContinuousEventPriority, |
54 | 53 | getCurrentUpdatePriority, |
55 | 54 | setCurrentUpdatePriority, |
@@ -1712,11 +1711,6 @@ function startTransition(setPending, callback) { |
1712 | 1711 |
|
1713 | 1712 | setPending(true); |
1714 | 1713 |
|
1715 | | - // TODO: Can remove this. Was only necessary because we used to give |
1716 | | - // different behavior to transitions without a config object. Now they are |
1717 | | - // all treated the same. |
1718 | | - setCurrentUpdatePriority(DefaultEventPriority); |
1719 | | - |
1720 | 1714 | const prevTransition = ReactCurrentBatchConfig.transition; |
1721 | 1715 | ReactCurrentBatchConfig.transition = 1; |
1722 | 1716 | try { |
|
Collapse file
Copy file name to clipboardExpand all lines: packages/react-reconciler/src/ReactFiberHooks.old.js -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,7 +49,6 @@ import { |
49 | 49 | markRootMutableRead, |
50 | 50 | } from './ReactFiberLane.old'; |
51 | 51 | import { |
52 | | - DefaultEventPriority, |
53 | 52 | ContinuousEventPriority, |
54 | 53 | getCurrentUpdatePriority, |
55 | 54 | setCurrentUpdatePriority, |
@@ -1712,11 +1711,6 @@ function startTransition(setPending, callback) { |
1712 | 1711 |
|
1713 | 1712 | setPending(true); |
1714 | 1713 |
|
1715 | | - // TODO: Can remove this. Was only necessary because we used to give |
1716 | | - // different behavior to transitions without a config object. Now they are |
1717 | | - // all treated the same. |
1718 | | - setCurrentUpdatePriority(DefaultEventPriority); |
1719 | | - |
1720 | 1714 | const prevTransition = ReactCurrentBatchConfig.transition; |
1721 | 1715 | ReactCurrentBatchConfig.transition = 1; |
1722 | 1716 | try { |
|