@decocms/start 1.2.7 → 1.2.8
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/package.json +1 -1
- package/src/routes/cmsRoute.ts +13 -0
package/package.json
CHANGED
package/src/routes/cmsRoute.ts
CHANGED
|
@@ -175,8 +175,21 @@ export const loadCmsHomePage = createServerFn({ method: "GET" }).handler(async (
|
|
|
175
175
|
};
|
|
176
176
|
const page = await resolveDecoPage("/", matcherCtx);
|
|
177
177
|
if (!page) return null;
|
|
178
|
+
|
|
179
|
+
for (const s of page.resolvedSections) {
|
|
180
|
+
if (s.component?.includes("eader")) {
|
|
181
|
+
console.log(`[HOME-ROUTE] BEFORE loaders: "${s.component}" propKeys=[${Object.keys(s.props || {}).join(",")}] propsSize=${JSON.stringify(s.props || {}).length}`);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
178
185
|
const enrichedSections = await runSectionLoaders(page.resolvedSections, request);
|
|
179
186
|
|
|
187
|
+
for (const s of enrichedSections) {
|
|
188
|
+
if (s.component?.includes("eader")) {
|
|
189
|
+
console.log(`[HOME-ROUTE] AFTER loaders: "${s.component}" propKeys=[${Object.keys(s.props || {}).join(",")}]`);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
180
193
|
const eagerKeys = enrichedSections.map((s) => s.component);
|
|
181
194
|
await preloadSectionComponents(eagerKeys);
|
|
182
195
|
|