Skip to content

Error when morphing a page when visiting it for the second time #1080

@brunoprietog

Description

@brunoprietog

With morphing enabled by default, when visiting a page with the 'replace' action, revisiting the previous page using the 'replace' action, and then revisiting the current page using the 'replace' action, an error occurs, and the body becomes null.

You can easily test the error at https://turbo-morph-error.fly.dev/

Visit the second page, then return to the first page by pressing the link, and then press the link to visit the first page again. You will see that the page remains blank.

From my perspective, what is happening is that in one of the renderings with morphing, the body is set to null after calling idiomorph. I tried debugging, but I only managed to notice that; I still don't understand the cause.

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