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
vite-pages should provide an api to let themes pull page data manually.
After more consideration, I think vite-pages core itself don't need to provide more apis. User can pass 404 Component directly to theme directory via _theme.tsx and vite-pages core don't need to care about that. Users don't need to create a page named 404 any more.
Expose api for manually control page data would make server-side-generation more complex.
In this line:
vite-plugin-react-pages/packages/theme-doc/src/index.tsx
Line 51 in 8b980d9
Page data of
/404
is not loaded yet, soComp404
is always undefined. vite-pages should provide an api to let themes pull page data manually.The text was updated successfully, but these errors were encountered: