I have a livewire component called Cart
.
If the user open this component in multiple devices at the same time (i.e. mobile
and desktop
, or open it in multiple browser tabs), and add an item to the cart in the mobile
browser, is there a way to refresh the component in desktop
browser?
I know these components are independent of each other, so I'm thinking of a solution where I have to store, for example, the component ID (or something like that) and create the another one based on it.
Is there a well-developed solution to this?
question from:
https://stackoverflow.com/questions/65941943/laravel-livewire-sync-between-multiple-devices-instances 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…