mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
486 B
486 B
| title | tweet_id | thread_slug | author_username | images | created_at | slug | |
|---|---|---|---|---|---|---|---|
| Advanced trait design | obscure-livewire-tips | samuelstancl |
|
2021-04-09T17:23:56+02:00 | advanced-trait-design |
Let's look at the same trait again. It does two interesting things.
-
Livewire::listen() is superior to hydrate* and dehydrate* when you need access to specific parts of the lifecycle
-
The
instanceof selfcheck scopes the listener to the component