I have seen ‘new Error()’ passed as argument into the next() function. Are there other valid arguments that can be passed into the next()?
Thanks!
I have seen ‘new Error()’ passed as argument into the next() function. Are there other valid arguments that can be passed into the next()?
Thanks!
You can use a string ‘route’ to go the next matching route.
Thank you. Is there any other argument that can be passed in?