anu-verzum 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/reconciler.js +4 -0
- package/package.json +1 -1
package/dist/core/reconciler.js
CHANGED
|
@@ -28,6 +28,9 @@ const resetNextUnitOfWork = () => {
|
|
|
28
28
|
if (!update) {
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
+
if (update.from === CLASS_COMPONENT && !update.instance.__fiber) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
31
34
|
if (update.partialState) {
|
|
32
35
|
update.instance.__fiber.partialState = update.partialState;
|
|
33
36
|
}
|
|
@@ -375,6 +378,7 @@ const commitWork = effect => {
|
|
|
375
378
|
if (effect.stateNode.componentWillUnmount) {
|
|
376
379
|
effect.stateNode.componentWillUnmount();
|
|
377
380
|
}
|
|
381
|
+
effect.stateNode.__fiber = null;
|
|
378
382
|
}
|
|
379
383
|
commitDeletion(effect, domParent);
|
|
380
384
|
}
|
package/package.json
CHANGED