I have a molecule producing a stateflow. How can I...
# squarelibraries
b
I have a molecule producing a stateflow. How can I skip emissions if a recomposition is scheduled? For example an api returns synchronously from cache and I don't want to emit the intermediary loading state.
Looked at the clock implementation. Looks like I can drop emissions while
frameSends
is not empty.
s
For example an api returns synchronously from cache
can this API return a
StateFlow
so that you don't have to start with a placeholder value?
b
Oh hey Saket how's it going 👋. Yes that's probably the right thing to do but was trying to find a shortcut.
blob smile 1
👋 1