Skip to content

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

Open
@mdepot

Description

@mdepot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions