@blocklet/pages-kit 0.7.1 → 0.7.3

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.
@@ -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) {