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/share-state-using-sprucewire.md
2021-04-09 18:47:19 +02:00

483 B

title tweet_id thread_slug author_username images created_at slug
Share state with Sprucewire obscure-livewire-tips samuelstancl
2021-04-09T17:26:56+02:00 share-state-with-sprucewire

If you have two components that share some state, and you'd like to keep them in sync in a more effective way than dispatching listeners back and forth, check out Sprucewire.

It works almost like Vuex for Livewire.

https://twitter.com/_joshhanley/status/1362646916333334528