1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/use-wireentangle-instead-of-entangle.md
Samuel Štancl cc3667933a Week 29/2022
2022-07-22 16:49:28 +02:00

15 lines
No EOL
518 B
Markdown

---
title: 'Use `$wire.entangle()` instead of `$entangle` '
tweet_id: '1550466505782874113'
thread_slug: weekly-thread-2022-29
author_username: JuanDMeGon
images:
- 'https://pbs.twimg.com/media/FXu2k3xVEAMUFKg.jpg'
created_at: 2022-07-22T13:03:15+00:00
slug: use-wireentangle-instead-of-entangle
---
TIL:
In Laravel Livewire, it's better sometimes to use wire.entangle(), instead of the entangle directive, avoids weird issues like "invalid or unexpected token."
Thanks, @samuelstancl, for posting that gem. 🔥