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

Adding async decorator with router.isReady() #59

Merged
merged 7 commits into from
Dec 4, 2023

Conversation

NickMcBurney
Copy link
Owner

@NickMcBurney NickMcBurney commented Dec 4, 2023

New async method implements await router.isReady() for use-cases where we need to wait for router setup prior to mounting component - for example components using router information in their created() lifecycle hook.

Closes #58

Also:
Improving documentation for mockRouter
Closes #57

Copy link

netlify bot commented Dec 4, 2023

Deploy Preview for storybook-vue3-router ready!

Name Link
🔨 Latest commit 0e1ef0d
🔍 Latest deploy log https://app.netlify.com/sites/storybook-vue3-router/deploys/656e545ee6714a00087cd345
😎 Deploy Preview https://deploy-preview-59--storybook-vue3-router.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@NickMcBurney NickMcBurney added the major A new major release label Dec 4, 2023
@NickMcBurney NickMcBurney merged commit 0e48e66 into main Dec 4, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
major A new major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect behaviour during routing with $route mockRouter() not working, but vueRouter() does
1 participant