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 }}
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
When hydrating the client-side app from a server-side rendered error page, the segment prop provided to _layout.svelte is incorrect (for me, it's undefined).
props.segments[l]=segments[i+1];// TODO make this less confusing
if(!part)returnnull;
preloaded appears to be, as the name suggests, the results of invocations of preload functions, as appropriate, for components rendered server side and serialized to the client.
The text was updated successfully, but these errors were encountered:
I've been working getting sapper to compile with TypeScript in strict mode and also came across this surprising assignment.
I haven't been able to find any documentation about what the contract for segments is, so it's been a challenge to fix it. Does anyone subscribed to this issue have any suggestions?
When hydrating the client-side app from a server-side rendered error page, the
segment
prop provided to_layout.svelte
is incorrect (for me, it'sundefined
).The issue appears to be here:
sapper/runtime/src/app/app.ts
Lines 134 to 150 in 49f8b2c
which is vastly different than the normal logic used to create the
props.segments
array:sapper/runtime/src/app/app.ts
Lines 259 to 263 in 49f8b2c
sapper/runtime/src/app/app.ts
Lines 291 to 293 in 49f8b2c
preloaded
appears to be, as the name suggests, the results of invocations ofpreload
functions, as appropriate, for components rendered server side and serialized to the client.The text was updated successfully, but these errors were encountered: