Skip to content

Conversation

@NWRichmond
Copy link
Contributor

What Does This Do?

Fixes #33 by not mutating node.content during text node rendering.

Many thanks to @tolgap for providing this solution!

Demonstration

Before

Vue warns about an infinite update loop:

(Code Sandbox)

Vue warns, 'You may have an infinite update loop in a component render function.'

After

No warning about infinite update loops:

(Code Sandbox)

No warnings about infinite update loops

@tolgap tolgap merged commit e6ae879 into paramander:master Jul 19, 2021
@tolgap
Copy link
Member

tolgap commented Jul 19, 2021

@NWRichmond Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Infinite Update Loop Warning when Adding Newline Break

2 participants