You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not exactly an issue, more of a documentation request as I couldn't seem to figure out how to do it just fiddling around.
I have a sealed class I am using as an action:
class SelectClient(var id:String? = "") {
companion object
}
My reducer looks like this:
val rwaReducer = Reducer { state: RWAState, action: Any ->
when (action) {
SelectClient -> {
val action = action as SelectClient
println(action.id) // Doesn't print anything here
state
}
else ->
state
}
}
When I dispatch an initialized class variable, it doesn't do anything in the reducer, looks like it doesn't recognize the class as the action passed
var action = SelectClient()
action.id = "SomeClient"
rwaStore.dispatch(action)
Perhaps I am dispatching wrongly? Any help would be appreciated! :)
The text was updated successfully, but these errors were encountered:
This is not exactly an issue, more of a documentation request as I couldn't seem to figure out how to do it just fiddling around.
I have a sealed class I am using as an action:
My reducer looks like this:
When I dispatch an initialized class variable, it doesn't do anything in the reducer, looks like it doesn't recognize the class as the action passed
Perhaps I am dispatching wrongly? Any help would be appreciated! :)
The text was updated successfully, but these errors were encountered: