Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the realtime example by passing some data over the channel #1242

Open
mdepot opened this issue Nov 17, 2024 · 2 comments
Open

Improve the realtime example by passing some data over the channel #1242

mdepot opened this issue Nov 17, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@mdepot
Copy link

mdepot commented Nov 17, 2024

This is to suggest a minor improvement to the realtime example. Currently the /examples/README.md file says it "demonstrates the use of go channels to perform realtime communication with a Bubble Tea application."

Right now a channel is in use, however no data is being passed over it, so it's not really demonstrating how to update the model with something that was passed over a channel.

Instead of just counting the number of times that no data was sent, this example could be improved if it actually passed some sort of data in the structure, and then Update() could update the model with whatever was received through the channel, and then the View() could actually show that data as successfully arrived.

@mdepot mdepot added the enhancement New feature or request label Nov 17, 2024
@meowgorithm
Copy link
Member

That sounds good to me. Feel free to open a PR to add that functionality.

@FFCoder
Copy link

FFCoder commented Nov 19, 2024

@meowgorithm Hey! I created a PR for this. Please let me know your thoughts! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants