Pavel S
05/22/2024, 7:24 AMstore
by calling storeFactory.create
and instead is supposed to create some factory class with a function returning object : Store<…> by storeFactory.create(…)
?Arkadii Ivanov
05/22/2024, 7:32 AMArkadii Ivanov
05/22/2024, 7:32 AMPavel S
05/23/2024, 4:54 PMstoreFactory::create
directly, it returns an instance of Store<Intent, State, Label>
and if it’s used together with instanceKeeper::getStore
you get weird `ClassCastException`s in runtimeArkadii Ivanov
05/24/2024, 10:57 AMPavel S
05/24/2024, 2:20 PMArkadii Ivanov
05/24/2024, 2:27 PMgetStore(key = "store1") { ... }
. I will play with typeOf instead of KClass and see if it solves the issue.Pavel S
05/24/2024, 2:33 PMArkadii Ivanov
05/28/2024, 5:37 PMtypeOf
instead of T::KClass
, so it won't crash starting with the next release.Arkadii Ivanov
06/07/2024, 1:15 PM