mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
feat!: make Init return the model
This commit is contained in:
+2
-2
@@ -125,8 +125,8 @@ func (m Model) Timedout() bool {
|
||||
}
|
||||
|
||||
// Init starts the timer.
|
||||
func (m Model) Init() tea.Cmd {
|
||||
return m.tick()
|
||||
func (m Model) Init() (Model, tea.Cmd) {
|
||||
return m, m.tick()
|
||||
}
|
||||
|
||||
// Update handles the timer tick.
|
||||
|
||||
Reference in New Issue
Block a user