1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00

livewire thread

This commit is contained in:
Samuel Štancl 2021-04-09 18:47:19 +02:00
parent a60370fbc9
commit 57ab16675e
18 changed files with 244 additions and 25 deletions

View file

@ -0,0 +1,14 @@
---
title: 'Use wire:replace'
tweet_id: '1380542122105921536'
thread_slug: obscure-livewire-tips
author_username: samuelstancl
images:
- 'https://pbs.twimg.com/media/EyirvPAWQAIN6ib.jpg'
created_at: 2021-04-09T16:11:56+02:00
slug: 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.