Skip to content

"nuxt.isHydrating" remains "true" when not using "pages" folder #13301

Closed
nuxt/framework
#2937
@kevinmarrec

Description

Environment

  • Operating System: Linux
  • Node Version: v14.16.0
  • Nuxt Version: 3.0.0-27386759.b449d0b
  • Package Manager: npm@7.17.0
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/nuxt-starter-ecx3zv

Nuxt.3.forked.-.StackBlitz.-.Brave.2022-01-26.17-41-25.mp4

isHydrating is true but should be false when finished hydrating.

Renaming app.vue to pages/index.vue makes isHydrating to false as expected.

Describe the bug

nuxt.isHydrating is not set to false when not using pages folder.

Additional context

This issue makes useAsyncData not working as expected when used in a component that is used client side only using a v-if condition.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions