@blocklet/pages-kit 0.7.0 → 0.7.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/lib/cjs/components/CustomComponentRenderer/state.js +3 -0
- package/lib/cjs/tsconfig.tsbuildinfo +1 -1
- package/lib/cjs/utils/inject-global-components.js +2 -0
- package/lib/esm/components/CustomComponentRenderer/state.js +3 -0
- package/lib/esm/tsconfig.tsbuildinfo +1 -1
- package/lib/esm/utils/inject-global-components.js +2 -0
- package/lib/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -327,6 +327,9 @@ const getComponentByComponentId = ({ componentId, locale, instanceId, }) => {
|
|
|
327
327
|
};
|
|
328
328
|
function usePreloadComponent({ instanceId, componentId, properties, locale, dev }) {
|
|
329
329
|
const previousRef = (0, react_1.useRef)(undefined);
|
|
330
|
+
if (dev?.mode === 'draft') {
|
|
331
|
+
return null;
|
|
332
|
+
}
|
|
330
333
|
const realLocale = getRealLocale(locale);
|
|
331
334
|
const result = getComponentByComponentId({ componentId, locale: realLocale, instanceId });
|
|
332
335
|
if (result) {
|