Sharing state between clients in Liveview #1523
Unanswered
pragmatrix
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A friend of mine and I tried the liveview axum example today, and we were wondering about how to share the counter between all the instantiations of the
app()
function. Is this somehow possible in a way so that the counter changes in all clients at the same time?I can imagine that sharing a channel and then yielding the counter with the help
use_coroutine()
into the App's render function might work. Is this the recommended way, or do I miss something?Beta Was this translation helpful? Give feedback.
All reactions