mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
feat!: make Init return the model
This commit is contained in:
@@ -73,8 +73,8 @@ func (m Model) ID() int {
|
||||
}
|
||||
|
||||
// Init starts the stopwatch.
|
||||
func (m Model) Init() tea.Cmd {
|
||||
return m.Start()
|
||||
func (m Model) Init() (Model, tea.Cmd) {
|
||||
return m, m.Start()
|
||||
}
|
||||
|
||||
// Start starts the stopwatch.
|
||||
|
||||
Reference in New Issue
Block a user