Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The previous state received by the reducer has unexpected type of "Object". #3

Open
egoossens opened this issue Dec 10, 2019 · 4 comments

Comments

@egoossens
Copy link

I just cloned the repo and ran the app.

I get the following warning:

The previous state received by the reducer has unexpected type of "Object". Expected argument to be an object with the following keys: "todos", "visibilityFilter"

Any idea where this might be coming from?

@Jturpijn
Copy link

I just cloned the project, ran the gradlew -t run command in the root of the project and it started building. It compiled succesfully and webpack started running at localhost:8088 as documented in the README.md.

@Jturpijn
Copy link

Due to a lack of resources, I'm currently running into the same error. Did you manage solving your error @egoossens ?

@lawikayoub
Copy link
Owner

I believe this has something to do with the way Kotlin classes are transpiled to JS, though I am not entirely sure, I may have misconfigured something (rEnhancer maybe?). I'll look into this when I have time.

@OleksandrSamsonov
Copy link

To avoid this warning you can just make something like this.

val store = createStore<State, RAction, dynamic>( combinedReducers(), JSON.parse(JSON.stringify(State())), compose( rEnhancer(), js("if(window.__REDUX_DEVTOOLS_EXTENSION__ )window.__REDUX_DEVTOOLS_EXTENSION__ ();else(function(f){return f;});") ) )
Unfortunately cannot find anything other than this to overdue this warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants