-
Hi |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey Pheninux. I'm not sure if you've ever looked into Elm or React, but if so it might be similar. Typically, you want:
The top-level state manager is responsible for rendering all content. It delegates to each embedded state store to render components, etc. You have to pass down RE. DB usage, you can either:
Note that either way, your view only re-renders when Update is called (eg. a tea.Cmd is called which returns a tea.Msg). There's a little bit of detail on multi-component architectures on this post here — it's a walkthrough on how to nest components with Bubbletea: https://www.inngest.com/blog/interactive-clis-with-bubbletea. |
Beta Was this translation helpful? Give feedback.
Hey Pheninux. I'm not sure if you've ever looked into Elm or React, but if so it might be similar. Typically, you want:
The top-level state manager is responsible for rendering all content. It delegates to each embedded state store to render components, etc. You have to pass down
tea.Msg
inUpdate()
to all nested components.RE. DB usage, you can either: