Hi there.
Does MVIKotlin have something like a MVICore's post processor.
Or do we need to send a Label which will send Intent to the same Store?
a
Arkadii Ivanov
11/09/2020, 10:10 AM
Hi. No it doesn't. Whenever you want to send a label, just call
publish(Label)
.
👍 2
Arkadii Ivanov
01/13/2021, 10:16 AM
In MVICore PostProcessor exists only because you can't read a new state in the Actor. So if your need additional logic after state has changed, you have to dispatch a new Action from PostProcessor. In MVIKotlin you can dispatch a Result and read the new State right after dispatch function returns.
e
Ermolenko Alexandr
01/13/2021, 10:20 AM
Yes, I have already understood and appreciated the advantages of this approach :)