Adding "asPath" as argument to the "routeChangeStart" method #14265
Unanswered
TonchoLozev
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, guys
As the title of the requests says i need an additional argument in the routeChangeStart.
Currently we have only "href" in the arguments in this method, but i think adding the "asPath" as argument to the method will be helpful not only for me.
Here is my case:
So i do the following thing in the app .js file :
and then onClick on the 'Retry' button in NoNetworkConnection component
But the problem comes here, because doing that will reload the page and i dont want this behavior and to avoid that i need "asPath" and to use it like this
So my question is, is it possible to add "asPath" as argument to the "routeChangeStart" method
Beta Was this translation helpful? Give feedback.
All reactions