Does anyone know how to fix the React Redux/Redux ...
# react
s
Does anyone know how to fix the React Redux/Redux error where it says "The previous state received by the reducer has an unexpected type of "Object""
t
Do you use serialization for state?
s
I do not.
t
What is your State?
s
This is my state class:
data class State(
val timesVisited: Int = 1,
val showMobileNavBar: Boolean = false,
val showLanguageSelector: Boolean = false,
val currentCommandSection: CommandSections = CommandSections.NONE
)
@turansky
t
Could you check state without latest parameter?
s
I still get the same error without the last parameter in the state.
@turansky
t
Test example required
s
An example would be here: https://github.com/lawik123/kotlin-poc-frontend-react-redux/ This example project has the same issue as me. @turansky
t
What about plugin/dependencies update?
s
Updating dependencies has the same issue.
t
Do you use legacy
frontend
plugin?
s
I do not use the frontend plugin. I created a project using the Kotlin/Browser template in Intellij.
t
Gradle?
s
Yes
@turansky
t
Example required