charmbracelet / charmbracelet/bubbletea

Improve the realtime example by passing some data over the channel

Open
#1,242 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
44.9k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start with the realtime example referenced from /examples/README.md and inspect how its channel, Update(), and View() currently handle the absence of data. Change the example so data is sent through the channel, applied by Update(), and shown by View(); done means the example visibly demonstrates data arriving over a channel.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.