fix(core): 删除无用代码

This commit is contained in:
huangxuan 2024-01-11 17:55:48 +08:00
parent b0f765f798
commit cb01814a27
No known key found for this signature in database
GPG Key ID: E79F50C67022565D
1 changed files with 2 additions and 7 deletions

View File

@ -64,14 +64,9 @@ export function TriggerAction<S, A>(vNode: VNode, hook: Hook<S, A>, isUseState:
}
}
if (vNode === getProcessingVNode()) {
// 绑定的VNode就是当前渲染的VNode时就是在函数组件体内触发setState
markUpdatedInRender();
} else {
// 执行vNode节点渲染
launchUpdateFromVNode(vNode);
}
}
export function useReducerForInit<S, A>(reducer, initArg, init, isUseState?: boolean): [S, Trigger<A>] {
// 计算初始stateValue