mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
remove fix (no longer needed)
This commit is contained in:
+1
-1
@@ -3261,7 +3261,7 @@ export function startHostTransition<F>(
|
||||
|
||||
function ensureFormComponentIsStateful(formFiber: Fiber) {
|
||||
const existingStateHook: Hook | null = formFiber.memoizedState;
|
||||
if (existingStateHook !== null && existingStateHook.next !== null) {
|
||||
if (existingStateHook !== null) {
|
||||
// This fiber was already upgraded to be stateful.
|
||||
return existingStateHook;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user