@tarojs/runtime 4.1.12-beta.35 → 4.1.12-beta.37
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/dom/nearest-ctx.js +6 -1
- package/dist/dom/nearest-ctx.js.map +1 -1
- package/dist/dsl/common.js +4 -4
- package/dist/dsl/common.js.map +1 -1
- package/dist/index.cjs.js +10 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/runtime.esm.js +10 -5
- package/dist/runtime.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/runtime.esm.js
CHANGED
|
@@ -1511,7 +1511,12 @@ function resolveNearestCtxValue(node, root) {
|
|
|
1511
1511
|
return (_a = root.ctx) !== null && _a !== void 0 ? _a : null;
|
|
1512
1512
|
}
|
|
1513
1513
|
function bumpNearestCtxEpochForRoot(root) {
|
|
1514
|
-
|
|
1514
|
+
if (!isNearestCtxEnv() || root == null) {
|
|
1515
|
+
return;
|
|
1516
|
+
}
|
|
1517
|
+
if (typeof root.bumpNearestCtxEpoch === 'function') {
|
|
1518
|
+
root.bumpNearestCtxEpoch();
|
|
1519
|
+
}
|
|
1515
1520
|
}
|
|
1516
1521
|
|
|
1517
1522
|
const CHILDNODES = "cn" /* Shortcuts.Childnodes */;
|
|
@@ -4310,8 +4315,8 @@ function createRecursiveComponentConfig(componentName, forceCustomWrapper = fals
|
|
|
4310
4315
|
const lifeCycles = isCustomWrapper || forceCustomWrapper
|
|
4311
4316
|
? {
|
|
4312
4317
|
[ATTACHED]() {
|
|
4313
|
-
var _a, _b;
|
|
4314
|
-
const componentId = ((_a = this.data
|
|
4318
|
+
var _a, _b, _c, _d;
|
|
4319
|
+
const componentId = ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.i) === null || _b === void 0 ? void 0 : _b.sid) || ((_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.i) === null || _d === void 0 ? void 0 : _d.sid);
|
|
4315
4320
|
if (isString(componentId)) {
|
|
4316
4321
|
if (isCustomWrapper) {
|
|
4317
4322
|
customWrapperCache.set(componentId, this);
|
|
@@ -4324,8 +4329,8 @@ function createRecursiveComponentConfig(componentName, forceCustomWrapper = fals
|
|
|
4324
4329
|
}
|
|
4325
4330
|
},
|
|
4326
4331
|
[DETACHED]() {
|
|
4327
|
-
var _a, _b;
|
|
4328
|
-
const componentId = ((_a = this.data
|
|
4332
|
+
var _a, _b, _c, _d;
|
|
4333
|
+
const componentId = ((_b = (_a = this.data) === null || _a === void 0 ? void 0 : _a.i) === null || _b === void 0 ? void 0 : _b.sid) || ((_d = (_c = this.props) === null || _c === void 0 ? void 0 : _c.i) === null || _d === void 0 ? void 0 : _d.sid);
|
|
4329
4334
|
if (isString(componentId)) {
|
|
4330
4335
|
if (isCustomWrapper) {
|
|
4331
4336
|
customWrapperCache.delete(componentId);
|