Skip to content

parentComponent.ctx.deactivate is not a function while using stable v-for and <keep-alive>  #12914

Open
@yuanruixin

Description

@yuanruixin

Vue version

3.5.13

Link to minimal reproduction

Vue SFC Playground

Steps to reproduce

step1: click tab2

When the v-for directive is used on , if it is a constant , an error will be reported when switching tabs.

What is expected?

no error

What is actually happening?

parentComponent.ctx.deactivate is not a function

Image

System Info

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.has workaroundA workaround has been found to avoid the problemscope: keep-alive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions