@decocms/tanstack 7.37.2 → 7.37.4

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/tanstack",
3
- "version": "7.37.2",
3
+ "version": "7.37.4",
4
4
  "type": "module",
5
5
  "description": "Deco framework binding for TanStack Start + Cloudflare Workers",
6
6
  "repository": {
@@ -24,9 +24,9 @@
24
24
  "lint:unused": "knip"
25
25
  },
26
26
  "dependencies": {
27
- "@decocms/blocks": "7.37.2",
28
- "@decocms/blocks-admin": "7.37.2",
29
- "@decocms/blocks-cli": "7.37.2",
27
+ "@decocms/blocks": "7.37.4",
28
+ "@decocms/blocks-admin": "7.37.4",
29
+ "@decocms/blocks-cli": "7.37.4",
30
30
  "@deco-cx/warp-node": "^0.3.16",
31
31
  "fast-json-patch": "^3.1.0",
32
32
  "ws": "^8.18.0"
@@ -406,9 +406,22 @@ function DeferredSectionWrapper({
406
406
  .replace(/\.tsx$/, "")
407
407
  .replace(/^site-sections-/, "");
408
408
 
409
+ // Wrap in the same SectionErrorBoundary the resolved branches use above.
410
+ // Without this, the child at this position goes straight from `skeleton`
411
+ // to `<SectionErrorBoundary>...</SectionErrorBoundary>` once `section` is
412
+ // set — a type change React can't reconcile, forcing a full unmount of
413
+ // the skeleton subtree and mount of the resolved subtree even when the
414
+ // section's own LoadingFallback renders the real component with reduced
415
+ // props (a documented convention — see Footer.tsx/ETCImageContent.tsx in
416
+ // the farmrio-storefront migration's T64). That unmount/remount is what
417
+ // produces a hard rect-collapse-to-{0,0,0,0} layout-shift entry instead
418
+ // of an ordinary prop-driven resize. Keeping the wrapper identical across
419
+ // both branches lets React diff by type at the child position instead.
409
420
  return (
410
421
  <section ref={ref} id={sectionId} data-manifest-key={deferred.key} data-deferred="true">
411
- {skeleton}
422
+ <SectionErrorBoundary sectionKey={deferred.key} fallback={errorFallback}>
423
+ {skeleton}
424
+ </SectionErrorBoundary>
412
425
  </section>
413
426
  );
414
427
  }