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
15
content/tips/share-state-using-sprucewire.md
Normal file
15
content/tips/share-state-using-sprucewire.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
title: 'Share state with Sprucewire'
|
||||
tweet_id: ''
|
||||
thread_slug: obscure-livewire-tips
|
||||
author_username: samuelstancl
|
||||
images: {}
|
||||
created_at: 2021-04-09T17:26:56+02:00
|
||||
slug: 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue