1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 13:24:03 +00:00
laravel-tips/content/tips/use-wire-replace.md
2021-04-09 18:47:19 +02:00

592 B

title tweet_id thread_slug author_username images created_at slug
Use wire:replace 1380542122105921536 obscure-livewire-tips samuelstancl
https://pbs.twimg.com/media/EyirvPAWQAIN6ib.jpg
2021-04-09T16:11:56+02:00 use-wire-replace

As you know, Livewire sometimes runs into painful DOM diffing issues. They can usually be solved with simple workarounds, but sometimes those workarounds get quite complex.

So I built a package that adds a wire:replace directive, telling Livewire to replace an entire chunk of the DOM, instead of trying to diff individual changes.