Skip to content

Infinite Update Loop Warning when Adding Newline Break #33

@NWRichmond

Description

@NWRichmond

The Problem

According to #29, the recommended way to add <br />s to a content node is to use custom node-renderers as demonstrated /src/index.test.js.

However when using those node-renderers, Vue warns of an infinite update loop:

You may have an infinite update loop in a component render function.

When tested in a Nuxt app, I see the same warning when the dev server is running. When statically generating a page that uses this render function, the app gets stuck in a loop during hydration, and the page fails to load.

Minimal Reproduction

I created a Code Sandbox based on /src/index.test.js - notice the warning:

vue-console-warn

Discussion

It seems like something here needs to change, but I'm not sure what. I'll keep experimenting, but would appreciate any and all help with this. Please feel free to fork the Code Sandbox to experiment.

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