feat!: make Init return the model

This commit is contained in:
Ayman Bagabas
2024-09-10 14:04:36 -04:00
parent a93bfef532
commit 8972b56c9d
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -64,8 +64,8 @@ func (m *Model) setInitialValues() {
}
// Init exists to satisfy the tea.Model interface for composability purposes.
func (m Model) Init() tea.Cmd {
return nil
func (m Model) Init() (Model, tea.Cmd) {
return m, nil
}
// AtTop returns whether or not the viewport is at the very top position.