Why some Model doesn't implement Init()
method?
#563
Unanswered
RadhiFadlillah
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From what I understand, every custom model for BubbleTea must implement
tea.Model
interface for composability. However, from 15 models in this Bubbles package only 5 of them that implementInit()
method. I thought the least we must do is creating an empty init function like howProgress.Model
do:Personally I prefer if every model implements
Init()
method, at least for consistency. Are there any reasons on why some models don't implement it?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions