https://kotlinlang.org logo
#orbit-mvi
Title
# orbit-mvi
a

asyn

06/13/2021, 10:35 AM
image.png
r

Ravi

06/14/2021, 12:33 AM
you have to place loadCurrencyRating in
onCreate: ((state: STATE) -> Unit)? = null
of container method. This lambda will be executed when container gets created/interacted
m

Mikolaj Leszczynski

06/14/2021, 7:07 AM
this, and also the
container
needs to be stored in a field, you have a custom getter which will create a new container with every intent
👍 2
a

appmattus

07/07/2021, 10:33 PM
@Mikolaj Leszczynski I wonder if we could create a lint rule to spot this setup of a container? Possibly maybe able to create one around init too,although will be harder to figure out if it’s executing an intent block?
11 Views