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

Commit

Permalink
recieve preloaded root_data
Browse files Browse the repository at this point in the history
  • Loading branch information
cudr committed Apr 8, 2019
1 parent dcf726a commit f5e197f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion runtime/src/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,17 @@ export function handle_error(url: URL) {
const { pathname, search } = location;
const { session, preloaded, status, error } = initial_data;

if (!root_preloaded) {
root_preloaded = preloaded && preloaded[0]
}

const props = {
error,
status,
session,
level0: {},
level0: {
props: root_preloaded
},
level1: {
props: {
status,
Expand Down

0 comments on commit f5e197f

Please sign in to comment.