diff --git a/.changeset/calm-otters-wait.md b/.changeset/calm-otters-wait.md new file mode 100644 index 000000000..031ac10c7 --- /dev/null +++ b/.changeset/calm-otters-wait.md @@ -0,0 +1,6 @@ +--- +"@stackflow/react": patch +--- + +Fix SSR rendering that does not finish after a structured activity content +loader rejects. diff --git a/integrations/react/src/utils/PreloadableLazyComponent.tsx b/integrations/react/src/utils/PreloadableLazyComponent.tsx index f6a288eba..ca0ea837a 100644 --- a/integrations/react/src/utils/PreloadableLazyComponent.tsx +++ b/integrations/react/src/utils/PreloadableLazyComponent.tsx @@ -14,10 +14,7 @@ export function preloadableLazyComponent

( default: ComponentType

; }> | null = null; const cachedLoad = () => { - if ( - !cachedLoadingPromise || - inspect(cachedLoadingPromise).status === PromiseStatus.REJECTED - ) { + if (!cachedLoadingPromise) { cachedLoadingPromise = load(); }