@easy-editor/react-renderer 0.0.14 → 0.0.15

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.
@@ -1759,11 +1759,14 @@ function baseRendererFactory() {
1759
1759
  * execute method in schema.lifeCycles
1760
1760
  */
1761
1761
  __executeLifeCycleMethod = (method, args) => {
1762
- const {
1763
- engine
1764
- } = this.context;
1765
- if (!engine.props.enableStrictNotFoundMode) {
1766
- return;
1762
+ // construct 场景下,跳过判断
1763
+ if (this.context) {
1764
+ const {
1765
+ engine
1766
+ } = this.context;
1767
+ if (!engine.props.excuteLifeCycleInDesignMode) {
1768
+ return;
1769
+ }
1767
1770
  }
1768
1771
  executeLifeCycleMethod(this, this.props.__schema, method, args);
1769
1772
  };