You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
renderJson: lazyUrl format differs from Fresh (/deco/render?format=json… vs /<path>?renderJson&__section=N) #650
The ?renderJson page envelope emits deferred (lazy) sections as { component, lazyUrl } placeholders the mobile app fetches on demand. The URL format differs between the two runtimes:
Both resolve to the same { component, props } body, but the contract the app sees changes: a client that parses or rewrites lazyUrl (e.g. to append its own params, cache by resolveChain, or route /deco/render differently from page URLs) built against Fresh breaks on TanStack. Measured on deco-sites/oficina-tanstack: Home has 6–8 lazy placeholders, the PDP 4, /the-post 6–10 — all with the new format. Not fixable on the site side (the placeholder is built inside the worker).
Ask
Document the format as part of the ?renderJson contract (the shape is implementation-defined: the app should treat lazyUrl as opaque and fetch it relative to the origin), or — if any consumer is known to depend on /deco/render?format=json— offer a compat option emitting that form (TanStack has no resolveChain, so it would carry href + __section under the /deco/render path instead).
Found while validating deco-sites/oficina-tanstack#479.
Activity