hotwired-laravel / turbo-laravel

This package gives you a set of conventions to make the most out of Hotwire in Laravel.
https://turbo-laravel.com
MIT License
803 stars 50 forks source link

Stream responses with empty content fails unexpectedly #147

Closed AEM5299 closed 4 months ago

AEM5299 commented 4 months ago

Turbo stream responses with empty content seem to throw a MissingPartial exception.

response()->update('id-xyz', '')

I would expect the above to clear the content of id-xyz. However, currently this fails and throws an exception (here)

I can submit a PR if I get confirmation this is not intended behaviour.

tonysm commented 4 months ago

Yeah, it's not intended behavior. @AEM5299 let me know if you want to tackle this, otherwise I'll do it when I have some time later this week.

AEM5299 commented 4 months ago

Thanks for confirming. PR opened here #148.