score:1
When you combine your reducers, you do this
const rootReducer = combineReducers({
LoginReducer,
PoiReducer
});
which means
const rootReducer = combineReducers({
LoginReducer : LoginReducer,
PoiReducer : LoginReducer
});
And that's not what you want.
it should be
const rootReducer = combineReducers({
loginReducer : LoginReducer,
poiReducer : LoginReducer
});
Also, for some reason, you got a rootReducer inside your root reducer, which is a little weird.
So the way to access to poiReducer would be
function mapStateToProps(state) {
console.log("State: ", state);
return {
pois: state.rootReducer.poiReducer
};
}
Source: stackoverflow.com
Related Query
- Fetching data from async api call using react redux
- Fetching data from store if exists or call API otherwise in React
- Can't access array data from API call when using map() in React
- React redux frontend not fetching data from Django API with axios
- How do I display data from api using react and redux
- update react child component's state using props received from an async api call made in the parent component
- How to fetch sequence api calls where second api call need particular data from first api call result using react hooks?
- Javascript - React Data from Async fetching is undefined using 'useEffect()' and 'useState'
- Fetching Data from API using NextJS and Material UI React
- How to set state at the server for data from API using react redux
- How to reuse data fetching logic from api using react custom hooks
- I'm fetching a problem when I'm trying to fetch data from an API by using useEffect in react
- Invalid hook call React while fetching data from an API
- I made an API call fetching data from it on a React component and passed it on to a state. I want to use the same data on another component too
- Fetching data from Prismic API using React Hooks
- Displaying more than one record from different API Call using React Redux
- React/Redux - Passing JSON data from one API call to another Redux action using Thunk
- API call using data from Redux reducer?
- How to call other api using data from one api in react js
- React redux not fetching data from API
- loading Data fetched from the API after refreshing page in react using redux
- Set the data in React Context from asynchronous API call
- React Select - How to show / iterate through data from api call in option instead of hardcoding options?
- How can I cache data that I already requested and access it from the store using React and Redux Toolkit
- React Hook useEffect : fetch data using axios with async await .api calling continuous the same api
- REACT - Set initial data in Formik Form after fetching from API
- React Context : Get Data from API and call API whenever some events happens in React Component
- How to redirect to 404 if no data from external API (universal React + Redux app)?
- displaying data from fetch api using react
- React Redux fetching data from backend approach
More Query from same tag
- How to use existing libraries in reactjs/webpack like GSAP?
- How to update a key indexed array state in useReducer?
- Component does not receive props from getStaticProps when wrapped with HOC
- Open Source React App Failed to Compile after npm install and npm start
- Customization of the Height of a Pivot Item Link Line in Fluent UI
- How to stop a carousel sliding when reaches the last item?
- Use `dispatch` hook in UseEffect
- Image not constrained by parent div height, only width
- Input onChange() event is not called
- Why is e.preventDefault() making page refresh on submit?
- Is okay to useMemo instead of useEffect for calling side-effect functions
- How to use an image for a placemarcs in React Yandex Maps?
- nav links are hidden - react
- addEventListener inside useLayoutEffect: the event listener is added multiple times
- React-router-dom v6 didn't show page when try to route
- Jump from one part of the page to another?
- How to set focus on a custom filter dialog in ag-grid react?
- Syntax High order components - Autosizer
- How to map data of a field in an JSON object which is an array of objects
- Reactjs Pagination loading all elements on page load
- Next.js How to implement Material-ui for all pages?
- React Jest: How do I mock an async API call that returns data?
- Instantiate React-component in jquery's draggable helper-function
- React Link not working on same url type dom
- State is not updating on axios call post Next js
- React does not see css properties
- Higher Order Components, Props with Formik & GatsbyJS
- React - play media after items are loaded with array.map()
- Redux Saga navigator.geolocation.getCurrentPosition
- css-loader localIdentName: is a hash necessary for uniqueness?