Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 66d1af0

Browse files
author
Je
committed
refactor: fix types
1 parent f2aa0a0 commit 66d1af0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function ALEPH({ initial }: {
6969
})
7070
}
7171
} else {
72-
setPage({ url })
72+
setPage({ url, Component: null })
7373
}
7474
}, [manifest, pageModules])
7575

@@ -102,9 +102,10 @@ function ALEPH({ initial }: {
102102
if (util.isLikelyReactComponent(Component)) {
103103
setApp({ Component })
104104
} else {
105-
setPage({
105+
setPage(({ url }) => ({
106+
url,
106107
Component: E501.App
107-
})
108+
}))
108109
}
109110
} else if (moduleId === './data.js' || moduleId === './data/index.js') {
110111
const { default: data } = await import(getModuleImportUrl(baseUrl, { moduleId, hash }) + '?t=' + Date.now())
@@ -122,7 +123,7 @@ function ALEPH({ initial }: {
122123
if (moduleId === './404.js') {
123124
setE404({ Component: E404Page })
124125
} else if (moduleId === './app.js') {
125-
setApp({})
126+
setApp({ Component: null })
126127
} else if (moduleId === './data.js' || moduleId === './data/index.js') {
127128
console.log('[DATA]', {})
128129
setData({})

0 commit comments

Comments
 (0)