From 15b14b77fe8101d8935e01539adef928852ad74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E9=AA=A8?= Date: Wed, 24 Jul 2024 23:04:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20updateState=EF=BC=8Creducer=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E8=AE=A1=E7=AE=97=20update=20=E6=97=B6=E4=BC=A0?= =?UTF-8?q?=E5=85=A5=20newState?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-reconciler/src/updateQueue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-reconciler/src/updateQueue.ts b/packages/react-reconciler/src/updateQueue.ts index 62637e4..5745580 100644 --- a/packages/react-reconciler/src/updateQueue.ts +++ b/packages/react-reconciler/src/updateQueue.ts @@ -138,7 +138,7 @@ export const processUpdateQueue = ( if (pending.hasEagerState) { newState = pending.eagerState; } else { - newState = basicStateReducer(baseState, action); + newState = basicStateReducer(newState, action); } } pending = pending.next as Update;