Mikael
11/07/2019, 10:43 AMcreateReduxStore
. I've tried running val myStore = createReduxStore(::myReducer, etc..)
in App.kt
just because I thought that it is good to run it as early as possible. The problem though is that I can't access myStore
from any other `object`s/`class`s like LoginPanel.kt
or MainPanel.kt
in the same package when doing this. I'm able to access myStore
from MainPanel.kt
if I run val myStore = createReduxStore(::myReducer, etc..)
in Login Panel.kt
I have:
com.mypackage
-App.kt
-LoginPanel.kt
-MainPanel.kt
-Model.kt
What is it that I'm doing wrong when I'm running val myStore = createReduxStore(::myReducer, etc..)
in App.kt
? Or should I just run val myStore = createReduxStore(::myReducer, etc..)
in LoginPanel.kt
?