abortNavigation(err?: Error | string): false
err: Optional error to be thrown by
Inside a route middleware handler,
abortNavigation() will abort navigation, and throw an error if one is set as a parameter.
Read more in Guide > Features > Routing.
Edit this page on GitHub Updated at Wed, May 25, 2022