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:
parent
a60370fbc9
commit
57ab16675e
18 changed files with 244 additions and 25 deletions
14
content/tips/use-wire-replace.md
Normal file
14
content/tips/use-wire-replace.md
Normal 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue