This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 251
Merge action raise 'Actions must be plain objects'. #890
Labels
Comments
Are you also using |
I am using redux-saga 0.14.8. Is weird because is working with other actions. |
By other actions, you mean with other thunk actions? |
I mean actions.change, actions.load, etc. |
Those aren't thunk actions, so they will work without import thunk from 'redux-thunk';
import createSagaMiddleware from 'redux-saga';
const sagaMiddleware = createSagaMiddleware();
const middlewares = [sagaMiddleware, thunk];
// ... in creating your store:
/* ... */ applyMiddleware(...middlewares) |
thanks @davidkpiano !! awesome. |
@davidkpiano I get this same issue while trying to use LocalForms. Unfortunately, I don't see any way to use thunks with LocalForms. I'm intentionally NOT using my own redux store. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The Problem
Can't merge an object into the model
Steps to Reproduce
I am using sagas. I have used other actions like load, change, reset, resetValidity and setValidity and they are working well.
For example:
Expected Behavior
Get the formReducer with the old values, and the new values after merge
Actual Behavior
Get the error: Actions must be plain objects. Use custom middleware for async actions.
The text was updated successfully, but these errors were encountered: