this.endComment is null #6965
Replies: 5 comments 7 replies
-
I've also encountered this bug. For me I had the following:
And when re-rendering the page after a change I would get
|
Beta Was this translation helpful? Give feedback.
-
Hmm. this probably has to do with Livewire's morph marker injection stuff. Try disabling it in your livewire.php config: If you set that to false, this might fix the problem. Report back either way though |
Beta Was this translation helpful? Give feedback.
-
I encountered the same issue when i was conditionally rendering a slot in a nested blade component. Turning off morph makers didn't fix it. What I had before:
The fix
|
Beta Was this translation helpful? Give feedback.
-
Also encountered this. I wanted to add a comma to list of (linked) authors but not on the last one. The comma was just added as is, encapsulating it inside a did the trick for me. |
Beta Was this translation helpful? Give feedback.
-
I also ran into this. I had 2 blade foreach loops in the same DIV element. php 8.3 |
Beta Was this translation helpful? Give feedback.
-
Livewire version
v3.0.3
Which PHP version are you using?
PHP 8.1
Repository URL
No response
Steps To Reproduce
I have trimmed down my page that I was having the error on to this very basic example. I created a test route and livewire component loading template.
Testarray_index.blade.php
That extends the layout which loads the livewire scripts. I am not using the autoload feature for livewire so I have the @livewireStyles and @livewireScripts tags in the layout file.
The test livewire component template.
The test livewire component code.
The process is simply. Load the route and the data is loaded and displayed. Click the test button and the random data is reloaded and displayed.
The issue is when the page is reloaded after clicking the button an error message occurs.
This only happens with the exact structure of template. If I change or remove the P tag the error does not happen. If I change or remove the A tag the error does not happen. Changes to the div tag in the foreach does not appear to make any difference. It only is the P tag and A tag that have an effect on the outcome.
Hope that helps reproduce the issue.
Additional information
No response
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions