score:17
Accepted answer
this github issue covers this exact problem: https://github.com/reactjs/react-redux/issues/60.
you can manually extract the values you want from your map in your mapstatetoprops function:
const mapstatetoprops = (state) => {
return {
constraints: state.get('constraints'),
selectedamount: state.get('selectedamount'),
selectedterm: state.get('selectedterm'),
};
}
Source: stackoverflow.com
Related Query
- mapStateToProps must return an object. Instead received Map {}?
- mapStateToProps must return a plain object. Instead received undefined
- mapStateToProps() in Connect(EquipmentMetadata) must return a plain object. Instead received undefined
- mapDispatchToProps() in Connect(App) must return a plain object. Instead received [object Promise]
- React-Redux container throws "mapStateToProps() in Connect(ModalRoot) must return a plain object. Instead received undefined."
- mapStateToProps() in Connect() must return a plain object. Instead received undefined
- Object.keys map return object Object instead value in text input form in ReactJS
- Return one array object instead all the object based on the condition using map function
- Aplication works but generates an error: mapDispatchToProps() in Connect(App) must return a plain object. Instead received undefined
- You must pass a component to the function returned by connect. Instead received undefined
- ES6 filter - how to return an object instead of an array?
- ES6 filter - how to return an object instead of an array?
- redux-form 7 force array of checkboxes to return Object instead of Array
- Redux/React. You must pass a component to the function returned by connect. Instead received undefined
- How to render one object from map instead all of them?
- onClick Event return Proxy object instead of event handler object in ReactJX
- How to sort Map object data by value instead of its key?
- How to fixed error: "You must pass a component to the function returned by connect. Instead received {}", in my React-Redux app?
- Why mapStateToProps return empty object when state has been mutated?
- React: Prop type must be a function, but received object
- map doesn't return correct array of object
- JS map array to return object of arrays for React
- typescript map object return type
- Expected an assignment or function call and instead saw an expression error in react if return is not present inside map statement why?
- Looping through object and using map doesn't return jsx
- How to map over an object which has a unique id for each object values and return the values to a React component
- Return just single Object instead of Array in NEXT.JS and MongoDB
- How do the map function that return an object with modified keys? (JS, React.js)
- How to flow type an object map such that value must contain key
- Return HTML tag in array of object map
More Query from same tag
- URLSearchParams is not defined error when running tests with jest
- how to fetch data from firebase realtime database in react js
- Checkbox clicked style dissapears when i press dropdown option through useState in React/Next JS
- How to implement side effect on observable property?
- Unable to render a child component inside main Component using iteration
- How to remove all the white spaces between two words?
- React Axios fetch response with error Objects are not valid as a React child
- react cant read the image json url content
- How to use breakpoints in Theme definition itself
- Failed to load resource: the server responded with a status of 400 () React.js
- How can I extract my function into its own modules?
- Weird reducer redux hack
- google-maps-react get marker position on drag end
- get local image path from json in react
- React, passing state from a Child component to the Parent
- React Bootstrap Form.Check with Formik
- Add Bullets to Each New Line within a textarea
- how to fetch image from the API using react js
- Error: Expected the root reducer to be a function. Instead, received: 'undefined'
- GSAP Scrolltrigger animation start/end positions don't update when there is a change in another element's height
- How to mock third-party library custom events with jest and react testing library
- React redux shows previous state old data before fetching new data
- Value null is converted into "" with React on input types
- How to reload a specific tag in reactJS
- ReactJS - how to pass component reference to another component as prop?
- How to organize js code when you are using v8js engine (php) for prerending react component?
- How do I avoid using separate _PENDING _FULFILLED and _REJECTED actions with redux thunk?
- How to use Thymeleaf th:text in reactJS
- How to filter value based on the nested array value?
- Semantic ui react Popup getting closed on click