egoist / vue-router-prefetch

Prefetch links when they are visible in viewport.
MIT License
384 stars 17 forks source link

Manual prefetching? #51

Open 9mm opened 3 years ago

9mm commented 3 years ago

I have a custom <base-button /> that doesn't use router-link, but it does use $router.push(), is it possible to somehow bind this exact same functionality to something other than a router-link?

9mm commented 3 years ago

Ah nevermind I somehow missed this in the docs. Is it possible to have more than one or is it just always going to be the one specified? There's hundreds of uses of both in the app so it's a bit tricky to try and change them all to a single component