https://kotlinlang.org logo
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
mvikotlin
  • a

    aiidziis

    04/12/2021, 2:53 PM
    By looking at
    mvikotlin:sample
    application I had an assumption that tests are working on iOS as well. When cloning repository I found that tests are enabled only for android and js targets. What would it take to get the same tests running for iOS target as well?
    a
    • 2
    • 17
  • i

    iamsteveholmes

    04/15/2021, 5:34 PM
    Is there any sample for implementing Coroutine Dispatchers in IOS? Seeing the sample it appears the Dispatchers are not implemented:
    import kotlinx.coroutines.CoroutineDispatcher
    
    internal actual val mainDispatcher: CoroutineDispatcher get() = throw NotImplementedError()
    
    internal actual val ioDispatcher: CoroutineDispatcher get() = throw NotImplementedError()
    a
    • 2
    • 1
  • a

    Arkadii Ivanov

    04/15/2021, 9:16 PM
    MVIKotlin 2.0.2 is released! • Published to Maven Central
    🎉 4
    i
    • 2
    • 2
  • i

    iamsteveholmes

    04/23/2021, 4:47 PM
    Can external events be bound (binded?) to state or intent? So for instance, imagine you are subscribed to some sort of event over the network that should update your state.
    a
    • 2
    • 5
  • j

    julian

    05/01/2021, 9:32 PM
    On the Overview page for MVIKotlin docs, there's this line
    A tiny abstraction over Rx is used instead.
    Does this mean that MVIKotlin has a dependency on a Java-only library e.g. RxJava? Or does it mean MVIKotlin has a custom Reactive Extensions implementation of its own? Or something else?
    a
    k
    • 3
    • 3
  • b

    Brady Aiello

    05/04/2021, 9:36 PM
    Folks using MVIKotlin, how did you get started? And if you’re using MVIKotlin, do you also prefer to use Decompose?
    a
    • 2
    • 3
  • a

    Arkadii Ivanov

    05/06/2021, 8:35 AM
    Version
    2.0.3
    is released! • Updated Kotlin to 1.5.0 (#218) • Enabled IR mode for JavaScript (#205)
    🎉 4
    i
    • 2
    • 1
  • l

    lehakorshun

    05/18/2021, 8:56 AM
    Hi @Arkadii Ivanov I have a trouble with lables on ios, when I publish Label on ios i have a crash
    Untitled
    a
    • 2
    • 18
  • m

    Mike

    05/29/2021, 1:08 PM
    Does anyone have an opinion on the best desktop and web framework to use with mvi now that compose is out? I looked at kotlin/js and kotlin/webassembly as well. I am leaning towards trying out compose with mvi.
    a
    • 2
    • 15
  • j

    julian

    06/02/2021, 11:55 PM
    I want to explore the MVIKotlin android todo sample app. I tried opening the
    todo-app-android
    directory as an existing project in Android Studio. But I got a Gradle exception about a missing wrapper task. How should I do this? What's the correct way to import
    todo-app-android
    into Android Studio?
    a
    • 2
    • 5
  • n

    Nikola Milovic

    06/03/2021, 7:39 AM
    Hello everyone, how do you share resource loading between desktop and android when utilizing Decompose/MVI? To access resources on Android you need reference to resources, and to get resources you need some kind of context that you cannot seem to get in commonMain. Making a simple weather app, I have an expect/actual fun that loads imageBitmaps (from res/drawable on android, and resources/images on desktop), but for the android one I need to get access to resources from context but I cannot access context in the commonMain to pass it to the expect fun. And desktop doesn't seem to support Painter API so I have to use imageBitmaps. This seems like a common thing to share ( anything with images really), so there must be a way I am missing out on. (Architecture is the same as Jetbrains/ Todo Sample)
    a
    • 2
    • 3
  • j

    julian

    06/03/2021, 6:11 PM
    Question about asynchrony and Executor - When SuspendExecutor has called a suspend function, and is suspended, does that mean new incoming Intents are queued somehow until the executor is unsuspended? Or is a new instance of executor created to handle these intents?
    a
    • 2
    • 2
  • b

    Botond Varsányi

    06/07/2021, 2:12 PM
    Hello everyone! Could you please show me a sample project where Labels are used. I could not find a detailed explaination about it in the documentation (maybe I missed something in the samples). I am especially interested about how it should be consumed properly in iOS and with compose in Android. Any comment appreciated.
    a
    • 2
    • 3
  • r

    Robert Munro

    06/24/2021, 11:19 AM
    I am playing with mvikotlin an am trying to use the coroutines libraries with it - but it looks like
    Store.states
    and
    MviView.events
    use rx style Subjects (com.arkivanov.mvikotlin.rx.Disposable|Observer) - so just checking if i need mvikotlin-rx dependency for this? or am i missing something?
    a
    • 2
    • 2
  • r

    Robert Munro

    06/25/2021, 12:36 PM
    Not a library question per se, What is the best way to handle an external stream of events into an MVI. I have a player MVI that receives external trackChange events from a queue. Is a good structure just map these trackChange events to intents and bind them to the store? or use another way (Actions?)
    a
    • 2
    • 1
  • m

    maskipli

    06/29/2021, 5:47 PM
    hy folks, am trying to use Decompose and MVI libs, and have issue
    cocoapods {
            summary = "Shared Module"
            homepage = "Link to the Shared Module homepage"
            ios.deploymentTarget = "14.1"
            frameworkName = "shared"
            podfile = project.file("../iosApp/Podfile")
        }
    sourceSets {
    sourceSets["iOSMain"].dependencies {
                implementation(Ktor.clientIos)
                implementation(MVIKotlin.kotlin)
                implementation(Decompose.decompose)
            }
    
    sourceSets["commonMain"].dependencies {
                implementation(MVIKotlin.kotlin)
                implementation(Decompose.decompose)
            }
    }
    why i can't access class of MVI from ios project, like
    ObservableValue, LifecycleRegistryKt
    sample from https://github.com/JetBrains/compose-jb/tree/master/examples/todoapp
    a
    l
    • 3
    • 5
  • i

    iamsteveholmes

    07/04/2021, 8:28 PM
    Hey Folks! Has anyone tried to use #realm with MVIKotlin? I'm using it because my app requires syncing of local and remote data and between users which is a very difficult problem that Realm seems to solve. The problem I've run into is that even adding the Realm drivers as a dependency seems to cause the build to fail. Here are some pieces of the stacktrace:
    e: org.jetbrains.kotlin.util.KotlinFrontEndException: Front-end Internal error: Failed to analyze declaration Intent
    File being compiled: (9,5) in .../store/CharacterListStore.kt
    The root cause java.lang.AssertionError was thrown at: org.jetbrains.kotlin.resolve.lazy.descriptors.AbstractLazyMemberScope.getContributedClassifier(AbstractLazyMemberScope.kt:75)
    
    ...then....
    
    Caused by: java.lang.AssertionError: Recursion detected on input: Intent under LockBasedStorageManager@33ccfc53 (TopDownAnalyzer for JVM)
    
    ...and later in the stacktrace I find:
    
    at io.realm.compiler.IrUtilsKt.getHasRealmModelInterface(IrUtils.kt:90)
            at io.realm.compiler.RealmModelSyntheticCompanionExtension.getSyntheticCompanionObjectNameIfNeeded(RealmModelSyntheticCompanionExtension.kt:45)
    And here is the "offending" code:
    interface CharacterListStore : Store<Intent, State, Nothing> {
        sealed class Intent {
            data class Delete(val id: Long) : Intent()
            object Loaded : Intent()
        }
    
        data class State(
            val characters: List<Character> = emptyList(),
            val selectedCharacterId: Long? = null,
        )
    }
    a
    • 2
    • 15
  • t

    Tiago Nunes

    07/05/2021, 12:19 PM
    Hey everyone, our team is considering using this library as a way to maximize code sharing. It is our understanding that with this library, we can share everything except the UI. What we really wanted to do is to share our ViewModel logic. From reading the docs, and inspecting the sample (keep in mind, we haven't studied MVI pattern before), one question popped off: • controller = createController(lifecycle.asMviLifecycle()) -- is this similar to doing viewModel by viewmodels()? What I mean by this question is: Is a Controller similar to a ViewModel in terms of lifecycle?
    a
    • 2
    • 4
  • m

    maskipli

    07/07/2021, 9:17 AM
    Has anyone experienced anything like this, i using
    mvikotlin-extensions-coroutines
    kotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one.
    kfun:kotlin.Throwable#<init>(kotlin.String?){} + 95
    kfun:kotlin.Exception#<init>(kotlin.String?){} + 93
    kfun:kotlin.RuntimeException#<init>(kotlin.String?){} + 93
    kfun:kotlin.IllegalStateException#<init>(kotlin.String?){} + 93
    kfun:kotlinx.coroutines.takeEventLoop#internal + 532
    kfun:kotlinx.coroutines.DefaultExecutor#dispatch(kotlin.coroutines.CoroutineContext;kotlinx.coroutines.Runnable){} + 204
    kfun:kotlinx.coroutines.NativeMainDispatcher.dispatch#internal + 275
    kfun:kotlinx.coroutines.internal#resumeCancellableWith__at__kotlin.coroutines.Continuation<0:0>(kotlin.Result<0:0>;kotlin.Function1<kotlin.Throwable,kotlin.Unit>?){0§<kotlin.Any?>} + 1275
    kfun:kotlinx.coroutines.intrinsics#startCoroutineCancellable__at__kotlin.coroutines.SuspendFunction1<0:0,0:1>(0:0;kotlin.coroutines.Continuation<0:1>;kotlin.Function1<kotlin.Throwable,kotlin.Unit>?){0§<kotlin.Any?>;1§<kotlin.Any?>} + 671
    kfun:kotlinx.coroutines.intrinsics#startCoroutineCancellable$default__at__kotlin.coroutines.SuspendFunction1<0:0,0:1>(0:0;kotlin.coroutines.Continuation<0:1>;kotlin.Function1<kotlin.Throwable,kotlin.Unit>?;kotlin.Int){0§<kotlin.Any?>;1§<kotlin.Any?>} + 370
    kfun:kotlinx.coroutines.CoroutineStart#invoke(kotlin.coroutines.SuspendFunction1<0:0,0:1>;0:0;kotlin.coroutines.Continuation<0:1>){0§<kotlin.Any?>;1§<kotlin.Any?>} + 693
    kfun:kotlinx.coroutines.AbstractCoroutine#start(kotlinx.coroutines.CoroutineStart;0:0;kotlin.coroutines.SuspendFunction1<0:0,1:0>){0§<kotlin.Any?>} + 162
    kfun:kotlinx.coroutines#launch__at__kotlinx.coroutines.CoroutineScope(kotlin.coroutines.CoroutineContext;kotlinx.coroutines.CoroutineStart;kotlin.coroutines.SuspendFunction1<kotlinx.coroutines.CoroutineScope,kotlin.Unit>){}kotlinx.coroutines.Job + 666
    kfun:kotlinx.coroutines#launch$default__at__kotlinx.coroutines.CoroutineScope(kotlin.coroutines.CoroutineContext?;kotlinx.coroutines.CoroutineStart?;kotlin.coroutines.SuspendFunction1<kotlinx.coroutines.CoroutineScope,kotlin.Unit>;kotlin.Int){}kotlinx.coroutines.Job + 697
    kfun:com.arkivanov.mvikotlin.extensions.coroutines.SuspendExecutor#handleAction(1:1){} + 364
    kfun:com.arkivanov.mvikotlin.main.store.DefaultStore.<init>$lambda-0#internal + 281
    kfun:com.arkivanov.mvikotlin.main.store.DefaultStore.$<init>$lambda-0$FUNCTION_REFERENCE$1.invoke#internal + 97
    kfun:com.arkivanov.mvikotlin.main.store.DefaultStore.$<init>$lambda-0$FUNCTION_REFERENCE$1.$<bridge-UNNN>invoke(-1:0){}#internal + 97
    kfun:com.arkivanov.mvikotlin.core.store.SimpleBootstrapper#invoke(){} + 686
    kfun:com.arkivanov.mvikotlin.main.store.DefaultStore#<init>(1:3;com.arkivanov.mvikotlin.core.store.Bootstrapper<1:1>?;kotlin.Function0<com.arkivanov.mvikotlin.core.store.Executor<1:0,1:1,1:3,1:2,1:4>>;com.arkivanov.mvikotlin.core.store.Reducer<1:3,1:2>){} + 1682
    kfun:com.arkivanov.mvikotlin.main.store.DefaultStoreFactory#create(kotlin.String?;0:3;com.arkivanov.mvikotlin.core.store.Bootstrapper<0:1>?;kotlin.Function0<com.arkivanov.mvikotlin.core.store.Executor<0:0,0:1,0:3,0:2,0:4>>;com.arkivanov.mvikotlin.core.store.Reducer<0:3,0:2>){0§<kotlin.Any>;1§<kotlin.Any>;2§<kotlin.Any>;3§<kotlin.Any>;4§<kotlin.Any>}com.arkivanov.mvikotlin.core.store.Store<0:0,0:3,0:4> + 476
    a
    n
    • 3
    • 8
  • l

    Laurence Muller

    07/08/2021, 5:23 PM
    Hello Arkadii, thanks for creating Decompose and MVIKotlin! I'm exited to try it out for a new KMM/Compose/SwiftUI project and have been impressed by the documentation so far (on github.io). The thing that actually helped me the most was your submission for the Android Dev Compose challenge ( https://github.com/arkivanov/android-dev-challenge-compose-1 ), it made it much easier to make sense of how all parts come together.
    a
    • 2
    • 7
  • n

    Nikola Milovic

    07/13/2021, 9:42 AM
    How do you guys handle storing persistant user data with the MVI/ Decompose approach? Eg storing user id persistently (something like shared preferences for Android)
    a
    • 2
    • 1
  • t

    trashcoder

    07/22/2021, 6:37 PM
    hello everyone, first of all sorry to bother you with this rather basic, general MVI question 🙈 i just started my first "MVI project" and try to learn by reading sources from example apps like the todo-app and try to use the frameworks that are used/mentioned there. (thx a lot @Arkadii Ivanov for all your nice work, btw!) but i somehow do not understand how MVI is meant to work... i mean, compose ui needs state change for recompose. but at the same time, time consuming intents/actions should be done off the UI thread. and the new state is returned when the intent is finished, right (circulation/one direction)? so does that mean that the UI won't change (e.g. toggle switch) until the new state was returned from the server/db?
    ✅ 1
    a
    • 2
    • 4
  • l

    Laurence Muller

    07/24/2021, 6:26 PM
    While learning MVIKotlin (and Decompose) I've been making demo projects that might be useful for others as well: https://github.com/falcon4ever/KMM-demos - Based on the guide on MVIKotlin and the todoapp in the jetbrains repo. I have tried to keep things as 'simple' as possible
    🔥 1
    👍 1
    a
    • 2
    • 1
  • a

    Arkadii Ivanov

    07/26/2021, 10:44 PM
    Hello everyone! I'm preparing the next major release -
    3.0.0
    , and I have a question/concern. You may noticed,
    SuspendExecutor
    has its
    executeIntent
    and
    executeAction
    methods defined as
    suspend
    . The base class
    SuspendExecutor
    accepts
    mainContext
    , which is usually
    Dispatchers.Main
    . Both methods are automatically called from inside
    launch
    , which has one important effect. The execution is always scheduled, and so is not synchronous. This may have some unwanted or unpredictable behaviours. The
    SuspendBootstrapper
    is affected as well. I have an idea - to go the same way as
    ViewModel
    and its
    viewModelScope
    . We can make all methods non-
    suspend
    , add
    val scope: CoroutineScope
    to the
    SuspendExecutor
    class, and let inheritors decide whether they need to switch context or not. The usage will be as on the screenshot (diff change in the sample
    TodoListStoreFactory
    ). Please let me know what do you think. Maybe I'm missing something?
    👍 1
    r
    • 2
    • 2
  • l

    Laurence Muller

    07/28/2021, 2:00 PM
    I'm trying out the time travel feature (super cool!) with the Todo app (from the compose-jb repo), it will only work on the active component/screen right? It's not replaying the navigation from the user input? e.g.: in the demo video I typed some stuff on the main screen, then go into the edit screen edit the entry and return back to the main screen. When replaying, it seems like the app state is manipulated correctly even though the Ui stays on the TodoMainUi
    mvikotlin-todoapp.mov
    a
    • 2
    • 1
  • f

    Francis Mariano

    07/30/2021, 6:09 PM
    Hello folks. Thanks for creating Decompose and MVIKotlin. Are they ready to be used in production?
    a
    • 2
    • 1
  • f

    Francis Mariano

    08/03/2021, 3:10 PM
    Arkadii, How can I test a Store? Are there a simple sample about that?
    a
    • 2
    • 2
  • f

    Francis Mariano

    08/04/2021, 6:40 PM
    Hello again. I am facing a trouble to create a Store
    fun create(): PopularMoviesStore =
        object : PopularMoviesStore,
            Store<Intent, State, Nothing> by storeFactory.create(
                name = "PopularMoviesStore",
                initialState = State(),
                executorFactory = ::ExecutorImpl,
                reducer = ReducerImpl
            ) {}
    But in ::ExecutorImpl there is a type mismatch.
    Required:
    PopularMoviesStore.Intent
    Found:
    PopularMoviesStoreFactory.Result
    Can anyone help me?
    a
    • 2
    • 4
  • f

    Francis Mariano

    08/06/2021, 9:26 PM
    Hello folks. I'm not able to map Valeu<T> from Value<State> to Value<Model> using coroutines on Component. Can anyone help me?
    a
    • 2
    • 2
  • b

    benkuly

    08/09/2021, 10:06 AM
    Hi 🙂 When I want to persist stuff with MVIKotlin, can I just use Intents for that and save manipulations of the store directly into an database?
    a
    • 2
    • 1
Powered by Linen
Title
b

benkuly

08/09/2021, 10:06 AM
Hi 🙂 When I want to persist stuff with MVIKotlin, can I just use Intents for that and save manipulations of the store directly into an database?
a

Arkadii Ivanov

08/09/2021, 10:08 AM
Hello. Saving intents sounds suspicious. Maybe you could just save the State? https://arkivanov.github.io/MVIKotlin/state_preservation.html
👍 1
View count: 3