fix(core): 删除无用代码
This commit is contained in:
parent
b0f765f798
commit
cb01814a27
|
@ -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节点渲染
|
// 执行vNode节点渲染
|
||||||
launchUpdateFromVNode(vNode);
|
launchUpdateFromVNode(vNode);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
export function useReducerForInit<S, A>(reducer, initArg, init, isUseState?: boolean): [S, Trigger<A>] {
|
export function useReducerForInit<S, A>(reducer, initArg, init, isUseState?: boolean): [S, Trigger<A>] {
|
||||||
// 计算初始stateValue
|
// 计算初始stateValue
|
||||||
|
|
Loading…
Reference in New Issue