Skip to content

Hydration fails when write like "<div><span>123</span>{{value}}</div>" in the template and the data "value" is a empty string #11109

Open
@deqwin

Description

@deqwin

Version

2.6.11

Reproduction link

https://codepen.io/deqwin/pen/wvaMxoO

Steps to reproduce

open the reproduction above and you will see a red vue warning in the console

What is expected?

a successful hydration

What is actually happening?

the hydration fails and the app re-renders absolutely


this looks like the problem caused by the empty text node (src/core/vdom/patch.js line:646)

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