Skip to content

v-once directive in render function (Failed to resolve directive) #5455

@solovev

Description

@solovev

Version

2.2.6

Reproduction link

https://jsfiddle.net/spritedev/ty2co130/1/

Steps to reproduce

  1. Open jsfiddle link
  2. Type something in input
  3. See warnings in console (Failed to resolve directive: once)

What is expected?

I wrote two equals components, first component has template field, second - render function. I was expected that v-once will work in render function properly (like in templates)

What is actually happening?

Got warning message in browser console:

[Vue warn]: Failed to resolve directive: once

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions