Skip to content
Discussion options

You must be logged in to vote

I was able to come up with a solution for my use case. I still think being able to set the $store.someVar in the x-init would be handy. But now understanding the current constraints here was my approach. I am going to just cut and past snippets from my code, so it won't follow the above example. Hopefully you can follow along.

Use case:
I have a livewire component that listens to a laravel echo presence channel that displays all of the users currently online. Here I need to store an array of online user ids to be used by a completely separate livewire component. That livewire component is a livewire data table with searching, sorting, and pagination. And more specifically the table is a d…

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@ryangjchandler
Comment options

@delta1186
Comment options

@ryangjchandler
Comment options

Comment options

You must be logged in to vote
5 replies
@joshhanley
Comment options

@ryangjchandler
Comment options

@joshhanley
Comment options

@delta1186
Comment options

@joshhanley
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by delta1186
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants