kotlin-composable-architecture icon indicating copy to clipboard operation
kotlin-composable-architecture copied to clipboard

Behaviour of `sink` is different to Swift TCA

Open allforabit opened this issue 4 years ago • 1 comments

Hi there, I was delighted to see that some work has started on porting the composable architecture to Kotlin. It looks great. Have just started playing around with it by copying and pasting some of the code to try the basic idea. I noticed that effects processing behaves a little different to Swift TCA. This processes one value at a time as it's received from the flow. However in the version here it uses .toList which means the flow will have to complete before any actions are sent back into the store.

allforabit avatar May 28 '21 10:05 allforabit

In case anyone's interested, I've attempted a fix for this in my fork.

humblehacker avatar May 15 '22 03:05 humblehacker