Hi! I have someStore (MVI store) that save in inst...
# mvikotlin
s
Hi! I have someStore (MVI store) that save in instanceKeeper, I call someStore.dispose(), and store go to state isDisposed = true, how I think I can't work with this store anymore, but why instance of store saved in instanceKeeper? Can I do something with disposable store? @Arkadii Ivanov
a
Hi! If a
Store
is managed by the
InstanceKeeper
then it is InstanceKeeper's responsibility to destroy the
Store
. You can use
InstanceKeeper,getStore
extensions function to create the
Store
. In this case it will be disposed automatically at the end of InstanceKeeper's lifecycle, you don't need to do it manually. Please checkout the example.
s
@Arkadii Ivanov ok thanks for help!
👍 1