SharedViewModel - share state between circuits #713
-
In my application, I have a unique process UUID that is received on the first screen and needs to be used on subsequent screens. I understand that in Circuit, each screen can have its own Presenter and Ui, which communicate through state and event emissions. However, I'm unsure about the best way to share this processUUID across multiple screens. I have considered defining the processUUID in a shared CircuitUiState that is used by multiple presenters. The first screen would receive the processUUID, and subsequent screens would use it. Would this be a good approach, or is there a better way to manage this? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sounds like this should live in your data layer above the presenter level in some way |
Beta Was this translation helpful? Give feedback.
Sounds like this should live in your data layer above the presenter level in some way