You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
simple code:
beforeRouteEnter(to, from, next){
if(1){next(new Error('This gonna call onError global route Hook');return;}
if(1){next(false);return;}//but that's not, this call only onAbort local route link.
}
i know, thats expected coz that's onError which mean calback should be called only on Error, but how we should operate/hook on false next on global level, which also stop routing?
I think you should add ||error===false
or create new global hook for router which called onCancel.
Right now i should everytime patch vue router just for getting this functionality, coz i need to stop progress bars/loading bars on any page Aborts, but i cant, coz it's not implemented yet.
afwn90cj93201nixr2e1re
changed the title
There's no way to global handle for onAbort in vue router (Check onError)
There's no way to global handle for onAbort in vue router (Check onError). Implement global onAbort router lifecycle hook.
Aug 8, 2020
No description provided.
The text was updated successfully, but these errors were encountered: