anu-verzum 1.21.0 → 1.21.2
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/README.md +5 -1
- package/dist/core/reconciler.js +2 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<h3>@author: <strong>Anubis-programmer</strong></h3>
|
|
6
6
|
<h3>@license: <strong>MIT</strong></h3>
|
|
7
|
-
<h3>@version: <strong>1.21.
|
|
7
|
+
<h3>@version: <strong>1.21.2</strong></h3>
|
|
8
8
|
|
|
9
9
|
<br>
|
|
10
10
|
|
|
@@ -191,5 +191,9 @@ Full usage documentation, API reference, and code examples:
|
|
|
191
191
|
|
|
192
192
|
**[USERS_MANUAL.md](./documentation/USERS_MANUAL.md)**
|
|
193
193
|
|
|
194
|
+
Architecture overview, module deep-dives, and implementation details for contributors:
|
|
195
|
+
|
|
196
|
+
**[TECHNICAL_DOCUMENTATION.md](./documentation/TECHNICAL_DOCUMENTATION.md)**
|
|
197
|
+
|
|
194
198
|
<br>
|
|
195
199
|
<hr>
|
package/dist/core/reconciler.js
CHANGED
|
@@ -139,19 +139,16 @@ const updateClassComponent = wipFiber => {
|
|
|
139
139
|
cloneChildFibers(wipFiber);
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
-
const nextProps = {
|
|
143
|
-
...wipFiber.props
|
|
144
|
-
};
|
|
145
142
|
let nextState;
|
|
146
143
|
if (!wipFiber.partialStateCallback) {
|
|
147
144
|
nextState = Object.assign({}, instance.state, wipFiber.partialState);
|
|
148
145
|
} else {
|
|
149
|
-
nextState = wipFiber.partialStateCallback(instance.state,
|
|
146
|
+
nextState = wipFiber.partialStateCallback(instance.state, wipFiber.props);
|
|
150
147
|
}
|
|
151
148
|
wipFiber.prevState = {
|
|
152
149
|
...instance.state
|
|
153
150
|
};
|
|
154
|
-
instance.props =
|
|
151
|
+
instance.props = wipFiber.props;
|
|
155
152
|
instance.state = nextState;
|
|
156
153
|
wipFiber.partialState = undefined;
|
|
157
154
|
delete wipFiber.partialStateCallback;
|
|
@@ -357,12 +354,6 @@ const commitWork = effect => {
|
|
|
357
354
|
} else if (effect.effectTag === UPDATE) {
|
|
358
355
|
if (effect && effect.stateNode && effect.alternate && effect.alternate.props && effect.props) {
|
|
359
356
|
if (effect.tag === HOST_COMPONENT) {
|
|
360
|
-
const nextDomSibling = getNextHostNode(effect, domParent);
|
|
361
|
-
if (nextDomSibling) {
|
|
362
|
-
domParent.insertBefore(effect.stateNode, nextDomSibling);
|
|
363
|
-
} else {
|
|
364
|
-
domParent.appendChild(effect.stateNode);
|
|
365
|
-
}
|
|
366
357
|
(0, _domUtils.updateDomProperties)(effect.stateNode, effect.alternate.props, effect.props, _domUtils.SVG_ELEMENT_LIST.indexOf(effect.type) > -1);
|
|
367
358
|
if (effect.ref) {
|
|
368
359
|
effect.ref.current = effect.stateNode;
|
package/package.json
CHANGED