implementing-a-simple-middleware-with-vue-router icon indicating copy to clipboard operation
implementing-a-simple-middleware-with-vue-router copied to clipboard

This is an example project for the following article: https://markus.oberlehner.net/blog/implementing-a-simple-middleware-with-vue-router/

Results 3 implementing-a-simple-middleware-with-vue-router issues
Sort by recently updated
recently updated
newest added

Hi, I don't know if I am wrong something or there is a bug in the code but if a middleware has a call inside it that decides whether the...

const nextMiddleware = nextFactory(context, middleware, 1); shouldn't it start at index 0?

When using nested routes you probably want to process the parent's middleware too. This addition loops through the matched parent routes, adds the middleware to an array and then sends...