51hook C/C++全棧軟件工程師
? ?// Initial mount should not be batched.
? ?unbatchedUpdates(() => {
? ? ?updateContainer(children, fiberRoot, parentComponent, callback);
? ?});
?} else {
? ?fiberRoot = root._internalRoot;
? ?if (typeof callback === 'function') {
? ? ?const originalCallback = callback;
? ? ?callback = function () {
? ? ? ?const instance = getPublicRootInstance(fiberRoot);
? ? ? ?originalCallback.call(instance);
? ? ?};
? ?}
? ?// Update
標(biāo)簽: