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

have to wait several ticks for route to update #586

Closed
danielroe opened this issue Jun 28, 2023 · 3 comments
Closed

have to wait several ticks for route to update #586

danielroe opened this issue Jun 28, 2023 · 3 comments

Comments

@danielroe
Copy link
Member

Example with latest version: https://stackblitz.com/edit/nuxt-vitest-mtv3z5

Originally posted by @Jesse1989pp in https://github.com/danielroe/nuxt-vitest/issues/76#issuecomment-1611332346

@danielroe
Copy link
Member Author

@danielroe
Copy link
Member Author

Here's a better workaround: danielroe/nuxt-vitest@5dc7c92.

The issue is that we (in Nuxt) wait several ticks after the route changes to update the route object. We might reconsider this, but it's not a bug in nuxt-vitest but an accurate reflection of what Nuxt is doing.

@danielroe danielroe transferred this issue from danielroe/nuxt-vitest Dec 2, 2023
@danielroe
Copy link
Member Author

resolved in #260 (as we no longer rely on NuxtPage to update route for us)

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

No branches or pull requests

1 participant