Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useLink isn't included in VueRouterExports #100

Closed
zkulbeda opened this issue Nov 26, 2022 · 4 comments
Closed

useLink isn't included in VueRouterExports #100

zkulbeda opened this issue Nov 26, 2022 · 4 comments

Comments

@zkulbeda
Copy link

useLink can't be auto imported, because it didn't specified in VueRouterExports

@posva
Copy link
Owner

posva commented Nov 26, 2022

This is intended as it’s important to keep auto imports to the strict minimal. You can check the unplugin auto import repo for reference.

Of course, you can add it to your vite confit if you use it very often

@posva posva closed this as completed Nov 26, 2022
@zkulbeda
Copy link
Author

zkulbeda commented Nov 26, 2022

So, from README.md it's not clear that VueRouterAutoImports has the strict minimal and can't be drop-in replacement, because the unplugin-auto-import vue-router preset has other composables build-in.

posva added a commit that referenced this issue Nov 27, 2022
@posva
Copy link
Owner

posva commented Nov 27, 2022

Ah, they changed it. I adapted the exports and the readme but useLink() is situational and sholudn't be in the auto imports array in my opinion, so I added a note on how to add it to the config

@zkulbeda
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants