Skip to content

Commit

Permalink
Merge pull request #37 from 903040380/master
Browse files Browse the repository at this point in the history
fix: 修复updateHostRoot中的类型问题
  • Loading branch information
BetaSu authored Jan 30, 2023
2 parents 725e09d + 66a27ff commit 8e6630e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/src/beginWork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function updateHostComponent(workInProgress: FiberNode, renderLanes: Lanes) {

function updateHostRoot(workInProgress: FiberNode, renderLanes: Lanes) {
const baseState = workInProgress.memoizedState;
const updateQueue = workInProgress.updateQueue as UpdateQueue<Element>;
const updateQueue = workInProgress.updateQueue as UpdateQueue<ReactElement>;
const pending = updateQueue.shared.pending;
updateQueue.shared.pending = null;
const { memoizedState } = processUpdateQueue(baseState, pending, renderLanes);
Expand Down

0 comments on commit 8e6630e

Please sign in to comment.