@decocms/start 0.27.1 → 0.27.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/start",
3
- "version": "0.27.1",
3
+ "version": "0.27.2",
4
4
  "type": "module",
5
5
  "description": "Deco framework for TanStack Start - CMS bridge, admin protocol, hooks, schema generation",
6
6
  "main": "./src/index.ts",
@@ -172,8 +172,17 @@ export function SectionRenderer({ section }: { section: Section | null | undefin
172
172
  return null;
173
173
  }
174
174
 
175
+ // Use the section's registered loadingFallback (if available) instead of
176
+ // the generic NestedSectionFallback. This lets parent sections (e.g.
177
+ // NotFoundChallenge) show a meaningful skeleton for nested children
178
+ // (e.g. MountedPDP) while the lazy chunk loads.
179
+ const options = getSectionOptions(section.Component);
180
+ const fallback = options?.loadingFallback
181
+ ? createElement(options.loadingFallback, section.props ?? {})
182
+ : <NestedSectionFallback />;
183
+
175
184
  return (
176
- <Suspense fallback={<NestedSectionFallback />}>
185
+ <Suspense fallback={fallback}>
177
186
  <Lazy {...(section.props ?? {})} />
178
187
  </Suspense>
179
188
  );