Skip to content

Commit 8e6630e

Browse files
authored
Merge pull request #37 from 903040380/master
fix: 修复updateHostRoot中的类型问题
2 parents 725e09d + 66a27ff commit 8e6630e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-reconciler/src/beginWork.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function updateHostComponent(workInProgress: FiberNode, renderLanes: Lanes) {
6161

6262
function updateHostRoot(workInProgress: FiberNode, renderLanes: Lanes) {
6363
const baseState = workInProgress.memoizedState;
64-
const updateQueue = workInProgress.updateQueue as UpdateQueue<Element>;
64+
const updateQueue = workInProgress.updateQueue as UpdateQueue<ReactElement>;
6565
const pending = updateQueue.shared.pending;
6666
updateQueue.shared.pending = null;
6767
const { memoizedState } = processUpdateQueue(baseState, pending, renderLanes);

0 commit comments

Comments
 (0)