@blocklet/pages-kit 0.4.81 → 0.4.83
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.
|
@@ -250,7 +250,10 @@ export function useComponent({ instanceId, componentId, properties, locale, dev
|
|
|
250
250
|
return undefined;
|
|
251
251
|
// keep preload props
|
|
252
252
|
let v = parsePropertyValue(property, value, { locale, defaultLocale: dev?.defaultLocale });
|
|
253
|
-
if (
|
|
253
|
+
if (dev?.mode === 'production' &&
|
|
254
|
+
property.type === 'component' &&
|
|
255
|
+
property.key &&
|
|
256
|
+
preload?.props?.[property.key]) {
|
|
254
257
|
v = {
|
|
255
258
|
...(preload?.props?.[property.key] ?? {}),
|
|
256
259
|
...v,
|