Laurence Muller
10/26/2021, 7:38 PM2.0.4
this works in my Android Compose app:
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:
storeFactory = LoggingStoreFactory(DefaultStoreFactory()),
or
storeFactory = LoggingStoreFactory(TimeTravelStoreFactory()),