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

Hydration does not change accordingly when used registerEndpoint + useLazyAsync #765

Open
lassediercks opened this issue Feb 20, 2024 · 0 comments

Comments

@lassediercks
Copy link

lassediercks commented Feb 20, 2024

Environment


  • Operating System: Linux
  • Node Version: v18.18.0
  • Nuxt Version: 3.10.2
  • CLI Version: 3.10.1
  • Nitro Version: 2.8.1
  • Package Manager: npm@10.2.3
  • Builder: -
  • User Config: devtools, modules
  • Runtime Modules: @nuxt/test-utils/module@3.11.0
  • Build Modules: -

Reproduction

Isolated reproduction:

https://stackblitz.com/edit/nuxt-starter-xti8mf?file=app.vue,package.json,app.spec.ts,components%2FFetching.spec.ts,components%2FFetching.vue,nuxt.config.ts

run
yarn vitest to see a failed spec that imo shouldve succeed

Describe the bug

When using registerEndpoint to mock an api response I'd expect to be able to validate the correct dom is displayed based on the mock response.

Additional context

No response

Logs

No response

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