@murasoftware/next-core
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -613,2 +613,18 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var isEditMode = getIsEditMode(); | ||
React.useEffect(function () { | ||
Mura(function () { | ||
var obj = Mura('div[data-instanceid="' + instanceid + '"]'); | ||
if (obj.data('async') == 'true' || obj.data('render') == 'server') { | ||
setTimeout(function () { | ||
var contentCheck = obj.find('mura-object-content'); | ||
if (!contentCheck.length || contentCheck.children().length) { | ||
console.log('rebuilding stale async module'); | ||
obj.processDisplayObject(); | ||
} | ||
}, 2000); | ||
} | ||
}); | ||
}, []); | ||
var domObject = { | ||
@@ -615,0 +631,0 @@ className: 'mura-object mura-async-object', |
@@ -610,2 +610,18 @@ import React, { useEffect, createContext } from 'react'; | ||
var isEditMode = getIsEditMode(); | ||
useEffect(function () { | ||
Mura(function () { | ||
var obj = Mura('div[data-instanceid="' + instanceid + '"]'); | ||
if (obj.data('async') == 'true' || obj.data('render') == 'server') { | ||
setTimeout(function () { | ||
var contentCheck = obj.find('mura-object-content'); | ||
if (!contentCheck.length || contentCheck.children().length) { | ||
console.log('rebuilding stale async module'); | ||
obj.processDisplayObject(); | ||
} | ||
}, 2000); | ||
} | ||
}); | ||
}, []); | ||
var domObject = { | ||
@@ -612,0 +628,0 @@ className: 'mura-object mura-async-object', |
{ | ||
"name": "@murasoftware/next-core", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"description": "Core utilties for Mura.js and Next.js", | ||
@@ -5,0 +5,0 @@ "author": "Mura Software", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228504
1783