I'm purposefully using
currentRecomposeScope
to invalidate some places. I'm running a custom composition to produce values out of, so I expect to be able to invalidate it when I want, but if the values being produced are
Unit
, it doesn't get invalidated in the right places.
Now thinking about it, I really shouldn't have the expectation that every composable I want to run will actually run.
Not sure if you can answer this, but would using
ControlledComposition
be the right approach here? I can't find any good docs about it, but I want something like
invalidateAll
because my Composables have intentional side-effects. This is a very niche use case, I know, but is there a supported way?
If you're curious, I'm using Compose to create delimited continuations, and it works pretty well, except when it doesn't lol!