Hello again. I am facing a trouble to create a Sto...
# mvikotlin
f
Hello again. I am facing a trouble to create a Store
Copy code
fun create(): PopularMoviesStore =
    object : PopularMoviesStore,
        Store<Intent, State, Nothing> by storeFactory.create(
            name = "PopularMoviesStore",
            initialState = State(),
            executorFactory = ::ExecutorImpl,
            reducer = ReducerImpl
        ) {}
But in ::ExecutorImpl there is a type mismatch.
Copy code
Required:
PopularMoviesStore.Intent
Found:
PopularMoviesStoreFactory.Result
Can anyone help me?
Sorry, I found the issue. It is with the reducer.
👍 1
I was returning
Reducer<State, Intent>
instead of
Reducer<State, Result>
a
Please note that
Reducer<State, Intent>
might a valid case, if you don't need
Executor
and
Bootstrapper
. JFYI
f
Yeah, understood tks