willyrs
07/03/2020, 5:57 PMval splashReducer: Reducer<SplashState> = { state, action -> return state }
and when I call it I have a EXC_BAD_ACCESS (code=1, address=0x0) error
If I write the function like this:
fun splashReducer(state: SplashState, action: Any) : SplashState { return state }
it works!
Do you think it’s a problem with reduxkotlin or with kotlin-native?
P.S. On kotlin-android it works with bothArkadii Ivanov
07/03/2020, 6:14 PMval
can only be accessed from the main thread. Unless you annotated it with either @SharedImmutable
or @ThreadLocal
. As per https://kotlinlang.org/docs/reference/native/immutability.html
Maybe this is the case?willyrs
07/03/2020, 6:17 PM