vue-router
vue-router copied to clipboard
[3.x] Implement onAbort especially for legacy 3.4.2 (3.x branch) without changing logic on 4.x branches
Read first comment
https://codesandbox.io/s/vue-routing-example-pfhhb - Bug example.
How to reproduce: Open link and read description. Posva don't wanna change 4.0 logic, that's why we should do it only for 3.x, not for 4.0/
As you can see it's already fixed in 4.0 (https://github.com/vuejs/vue-router/issues/2079) but most ppls still using 3.x and have this issue.
Expained one year ago before 4.0 development started, related links:
https://github.com/vuejs/vue-router/issues/3027#issuecomment-596007053 https://github.com/vuejs/vue-router/issues/2956#issue-503374613
So, im not the only one person who undestand that it's not properly designed and should be fixed/added at least in vue 3.x branch. https://github.com/vuejs/vue-router/issues/3157 (but it's not really available for understand)
P.s im waiting for that since october 2019, (1 year carl), but posva's opinion is: I don't wanna implement it and i don't wanna make a brekable changes. (https://github.com/vuejs/vue-router/issues/3157#issuecomment-605659028)
Introducing an api to remove it right away is, for me, worse that the breaking change because it's likely to create more confusion than the breaking change itself: returned Promise by router.push should be resolved/rejected after internal redirects (next('/other'))
So, shotly, i don't wanna implement neither.
So, my opinion is: vue-router is inside vue infrastructure (official), if you haven't solution rn, maybe then you should implement temporary solution and then deprecate it? I think there's no better ways to do it rn.
It's not disrespectful/rude, im just saying it as person who just tired waiting for fix and you are forgot about this issue each time when start's writing RFC (idk how rfc related to old branch). You are just don't listening to ppls which are coding on vue RN and founding more and more bugs which should be fixed asap, instead waiting for better solution which are not gonna be brekable (in most cases it's also impossible, in this one it's impossible and this pr the only one right solution) and so on sometimes you are just closing issues and being disrespectful to ppls which are reporting bugs, and after that you are saying to ppls that they are disrespectful to you.