I'm upgrading some KMM samples to the latest Decom...
# mvikotlin
l
I'm upgrading some KMM samples to the latest Decompose (0.4.0) and MVIKotlin (3.0.0-alpha02). For MVIKotlin
2.0.4
this works in my Android Compose app:
Copy code
private fun myRoot(componentContext: ComponentContext): IRoot =
        RootComponent(
            componentContext = componentContext,
            storeFactory = LoggingStoreFactory(TimeTravelStoreFactory(DefaultStoreFactory))
        )
but with
3.0.0-alpha01
and
3.0.0-alpha02
it looks like something changed The todo app on jb's repo uses
3.0.0-alpha01
and seems to do:
storeFactory = LoggingStoreFactory(TimeTravelStoreFactory(DefaultStoreFactory())),
https://github.com/JetBrains/compose-jb/blob/master/examples/todoapp/android/src/main/java/example/todo/android/MainActivity.kt#L37 that doesn't seem to work (see screenshot) Odd enough this works:
Copy code
storeFactory = LoggingStoreFactory(DefaultStoreFactory()),
or
Copy code
storeFactory = LoggingStoreFactory(TimeTravelStoreFactory()),