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.
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.