Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 9bb8bfa

Browse files
committed
receive preloaded root_data
1 parent dcf726a commit 9bb8bfa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

runtime/src/app/app.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,17 @@ export function handle_error(url: URL) {
125125
const { pathname, search } = location;
126126
const { session, preloaded, status, error } = initial_data;
127127

128+
if (!root_preloaded) {
129+
root_preloaded = preloaded && preloaded[0]
130+
}
131+
128132
const props = {
129133
error,
130134
status,
131135
session,
132-
level0: {},
136+
level0: {
137+
props: root_preloaded
138+
},
133139
level1: {
134140
props: {
135141
status,

0 commit comments

Comments
 (0)