Static GitHub Issues

[1687] Middleware arguments

prev: Global error handler?
next: <nuxt-link /> doesn't support click events

SImple question: Is it possible to pass arguments to a middleware?

For ex:

middleware: [
    middlewareName({myProp: 'myValue'})
]
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1511">#c1511</a>)</em></sub></div>