Skip to content

Since last update Suspense with RouterView acting weird #9769

@1337huania

Description

@1337huania

Vue version

3.3.10

Link to minimal reproduction

https://codesandbox.io/p/devbox/upbeat-ully-64czlg?file=%2Fsrc%2FApp.vue%3A10%2C35

Steps to reproduce

Navigate between ViewA and ViewB.

What is expected?

HTML elements suppose to keep same order (Navigation, RouterView, Footer) after navigating between views.

What is actually happening?

HTML elements being rendered in wrong order (Navigation, Footer, RouterView) after navigating between sync (ViewA) and async (ViewB) views.

System Info

No response

Any additional comments?

Ran into an issue after updating Vue to 3.3.10. Looks like it's related related to latest (3.3.10) release changes (#8105) and is most likely not related to Vue Router itself, but rather to async components.

— Issue persists even if I toggling between components programatically, without RouterView.
— Removing timeout property from Suspense gives weird delay but footer stays in place.
— Wrapping Suspense in to div makes Footer to stay in correct order.

Metadata

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy