Skip to content

Allowing v-once to accept a boolean flag #6407

@kevmo314

Description

@kevmo314

What problem does this feature solve?

Right now, v-once will render the component on creation, which is great if the data is available, however it would be nice to be able to allow the component to rerender until async data is available, then freeze the contents so it no longer impacts performance.

What does the proposed API look like?

Allow v-once to take a boolean parameter, eg :v-once="completed", and if this parameter is truthy, the default v-once behavior is applied, otherwise v-once is ignored.

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