Skip to content

v-once within component template makes all component instances static #6826

@kasperisager

Description

@kasperisager

Version

2.5.2

Reproduction link

https://jsfiddle.net/8L92f8Lm/

Steps to reproduce

  1. Create component that uses v-once within its template and renders dynamic content
  2. Render component multiple times with different content

What is expected?

Each instance of the component renders its associated content

What is actually happening?

All instances of the component render the same content


This seems to be a regression from 2.4.4 as witnessed by https://jsfiddle.net/8L92f8Lm/1/.

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