Skip to content

In router-view, the page browser rendered by suspense wrapped by keepAlive cannot return or switch components #6028

@Assone

Description

@Assone

Vue version

3.2.36

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-n7zewy?file=src%2FApp.vue

Steps to reproduce

if in the built-in window

  1. click about tab
  2. click home tab

if outside the built-in window(you need click Open in New Window,in right top)

  1. click about tab
  2. browser click back

What is expected?

browser back success and switch component success.

What is actually happening?

The console has some errors.

in sharedContext.deactivate an error occurred,look like keepAlive the error.

TypeError: Cannot read properties of null (reading 'da') at Array.<anonymous> (chunk-4OGPFPXL.js?v=c2056a12:3154:23) at flushPostFlushCbs (chunk-4OGPFPXL.js?v=c2056a12:1556:41) at flushJobs (chunk-4OGPFPXL.js?v=c2056a12:1585:5)

The corresponding file I think should be here.

System Info

System: OS: Windows 10 10.0.22000 CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz Memory: 15.93 GB / 31.84 GB Binaries: Node: 16.10.0 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.18 - ~\AppData\Roaming\npm\yarn.CMD Browsers: Edge: Spartan (44.22000.120.0), Chromium (101.0.1210.53) Internet Explorer: 11.0.22000.120

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions