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/replace-state-with-a-custom-directive.md
2021-04-09 18:47:19 +02:00

501 B

title tweet_id thread_slug author_username images created_at slug
Replace children with a custom directive obscure-livewire-tips samuelstancl
https://cln.sh/w6vdHe/download
2021-04-09T17:27:56+02:00 replace-children-with-a-custom-directive

Imagine that you have a nested component that depends on the parent state. You don't need to sync child state into parent, you just want to replace the child when the parent state changes.

You can use my custom directive for that.