@decocms/start 0.27.2 → 0.27.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/start",
3
- "version": "0.27.2",
3
+ "version": "0.27.3",
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",
@@ -240,8 +240,11 @@ function DeferredSectionWrapper({
240
240
  getSectionOptions(deferred.component),
241
241
  );
242
242
  const isSSR = typeof document === "undefined";
243
+ // Allow SSR to render the loadingFallback when registered sync via
244
+ // registerSection(). Previous `isSSR ? false` always returned null,
245
+ // hiding the skeleton from the HTML stream.
243
246
  const [optionsReady, setOptionsReady] = useState(() =>
244
- isSSR ? false : !!getSectionOptions(deferred.component),
247
+ !!getSectionOptions(deferred.component),
245
248
  );
246
249
  const ref = useRef<HTMLDivElement>(null);
247
250
  const triggered = useRef(false);