@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
|
@@ -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
|
-
|
|
247
|
+
!!getSectionOptions(deferred.component),
|
|
245
248
|
);
|
|
246
249
|
const ref = useRef<HTMLDivElement>(null);
|
|
247
250
|
const triggered = useRef(false);
|