@tarojs/runtime 3.6.7-alpha.1 → 3.6.8

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.
@@ -3896,7 +3896,7 @@ function getOnHideEventKey(path) {
3896
3896
  function createPageConfig(component, pageName, data, pageConfig) {
3897
3897
  // 小程序 Page 构造器是一个傲娇小公主,不能把复杂的对象挂载到参数上
3898
3898
  const id = pageName !== null && pageName !== void 0 ? pageName : `taro_page_${pageId()}`;
3899
- const [ONLOAD, ONUNLOAD, ONREADY, ONSHOW, ONHIDE, LIFECYCLES, SIDE_EFFECT_LIFECYCLES] = hooks.call('getMiniLifecycleImpl').page;
3899
+ const [ONLOAD, ONUNLOAD, ONREADY, ONSHOW, ONHIDE, LIFECYCLES, SIDE_EFFECT_LIFECYCLES,] = hooks.call('getMiniLifecycleImpl').page;
3900
3900
  let pageElement = null;
3901
3901
  let unmounting = false;
3902
3902
  let prepareMountList = [];
@@ -4031,7 +4031,8 @@ function createPageConfig(component, pageName, data, pageConfig) {
4031
4031
  var _a;
4032
4032
  if (component[lifecycle] ||
4033
4033
  ((_a = component.prototype) === null || _a === void 0 ? void 0 : _a[lifecycle]) ||
4034
- component[lifecycle.replace(/^on/, 'enable')]) {
4034
+ component[lifecycle.replace(/^on/, 'enable')] ||
4035
+ (pageConfig === null || pageConfig === void 0 ? void 0 : pageConfig[lifecycle.replace(/^on/, 'enable')])) {
4035
4036
  config[lifecycle] = function (...args) {
4036
4037
  var _a;
4037
4038
  const target = (_a = args[0]) === null || _a === void 0 ? void 0 : _a.target;