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

feat(preset): add vue-router/composables #256

Closed
wants to merge 1 commit into from

Conversation

kingyue737
Copy link

vue-router v3.6.0 is released with composables

@kingyue737 kingyue737 changed the title feat(preset): vue-router/composable feat(preset): add vue-router/composables Aug 22, 2022
@kingyue737 kingyue737 closed this Sep 23, 2022
@cloydlau
Copy link

I wonder why this is closed?

@cloydlau
Copy link

So what should I do when I deal with vue-router@3.6?

@kingyue737
Copy link
Author

@cloydlau I'm just cleaning my pull requests which are not likely to be merged. Another PR updating vue-router APIs has been merged #271. Maybe the maintainer thinks it doesn't deserve to add vue 2 related libraries here. But we can easily add it in our projects:

export default defineConfig({
  plugins: [
    AutoImport({
      imports: [
        {
          'vue-router/composables': [
            'useRoute',
            'useRouter',
            'useLink',
            'onBeforeRouteUpdate',
            'onBeforeRouteLeave',
          ],
        },
      ],
    }),
  ],
})

@kingyue737 kingyue737 mentioned this pull request Oct 11, 2022
3 tasks
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

Successfully merging this pull request may close these issues.

None yet

2 participants