Comments (4)
Do you mean you import a state from a state.json
file? Are you using redux-devtools-extension? If yes, give serialize.immutable
option a try.
If you are only using pure redux-devtools, then you are only making your workflow more difficult than it needs to be. In that case you'll have to use its store enhancer like this. Also, I think, you'll have to serialize/deserialize Immutable collections yourself.
Also it seems to me you're trying to use your fixer
function as a store enhancer to wrap state on each dispatch. You probably meant to employ a middleware here with applyMiddleware.
Actually, you won't need to go as far as resorting to middleware -- it is much more reasonable to just always work with Immutable data inside your reducers/initialState.
from redux-immutable.
Thank you for the detailed answer.
Yes, it was about redux-devtools-extension in this case and serialize.immutable option solve my problem.
It might be useful to add a link to answer in warning message, to simplify the search.
Add error text for search engine:
The previous state received by the reducer is of unexpected type. Expected argument to be an instance of Immutable.Iterable with the following properties
inputState.withMutations is not a function
from redux-immutable.
Thank you @Velenir.
from redux-immutable.
In my case, initialState in createStore is still is Object
const store = createStore(
reducer,
Immutable.Map({}), // THIS WOULD FIX MY PROBLEM
applyMiddleware(thunk, logger)
);
from redux-immutable.
Related Issues (20)
- React-router-redux selector documentation issue HOT 3
- Update from 3.0.9 to 3.0.10 causes flow-runtime errors HOT 1
- Link in README to combineReducers documentation is broken HOT 3
- combineReducers not imported HOT 3
- Reducer is not a function (within state tree) HOT 1
- Add build option for es modules HOT 11
- State is undefined, can not get initial state HOT 2
- Trying to make it work with redux-auth
- Why can't I use Immutable.Record as initialState in rootReducer? HOT 6
- Changelog ? HOT 1
- please offer a browser built version HOT 6
- How to add non immutable store when combining reducers HOT 14
- bump dependancy to rc9 HOT 1
- Wrong return type of combineReducers HOT 10
- inputState.withMutations is not a function HOT 2
- Is this repo still maintained? HOT 2
- how to use redux hooks with redux-immutable? HOT 1
- Think I am seeing this too on IE11. This error HOT 1
- NPM release with the latest changes?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-immutable.