-
-
Notifications
You must be signed in to change notification settings - Fork 141
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Clear and concise description of the problem
Vue Router Data loaders allow to start loading page data as early as possible and a great way to speed up page loading.
https://uvr.esm.is/data-loaders/
As you can see from this example they need to be registered before router. How can we do that with Vite SSG, as viteSSG createsApp and registers router itself?
const app = createApp({})
// Register the plugin before the router
app.use(DataLoaderPlugin, { router })
// adding the router will trigger the initial navigation
app.use(router)
Suggested solution
Allow for a code to be added in between or to have option to register loaders.
Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request