Skip to content

Commit 041d1b8

Browse files
committed
await page function
1 parent b16b2a8 commit 041d1b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/inertia-helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ export async function resolvePageComponent<T> (path: string, pages: Record<strin
2020
}
2121

2222
return typeof page === 'function'
23-
? page()
23+
? await page()
2424
: page
2525
}

0 commit comments

Comments
 (0)