@flue3/router
Advanced tools
Comparing version 0.0.8-dev.0 to 0.0.9-dev.0
@@ -8,3 +8,3 @@ import { createRouter, createWebHistory, createMemoryHistory, } from 'vue-router'; | ||
export * from 'vue-router'; | ||
export const createRouterPlugin = definePlugin(async ({ appContext, inject }, options) => { | ||
export const createRouterPlugin = definePlugin(async ({ appContext, inject, onAfterEntry, }, options) => { | ||
const router = createRouter({ | ||
@@ -37,3 +37,5 @@ routes: [...options.routes, ...pluginRoutes], | ||
createErrorStateMiddleware(appContext); | ||
createRoutesMiddleware(appContext); | ||
onAfterEntry(() => { | ||
createRoutesMiddleware(appContext); | ||
}); | ||
if (appContext.isServer) { | ||
@@ -40,0 +42,0 @@ await router.push(appContext?.req?.url ?? '/'); |
{ | ||
"name": "@flue3/router", | ||
"version": "0.0.8-dev.0", | ||
"version": "0.0.9-dev.0", | ||
"description": "flue3 <head> tag manager plugin", | ||
@@ -5,0 +5,0 @@ "author": "FL3NKEY", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9163
224