I'm using react-redux-starter-kit's latest release on the front-end, and Django 1.11.2 on the back-end.
In the release version 2.0.0, the configurations I've learned that are necessary to communicate with the back-end worked, but now with the newest release I'm experiencing an undefined payload when accessing the endpoint responsible for simply returning data.
These are the following I've done to make it communicate with the API. Starting with server/main.js, I've added:
I'd then import these methods within the containers/ within routes/ and access it from the component, which then returns payload: undefined if I console.log the action parameter.
I'm posting here wondering if there'd be something else to be done on this new release.
Greetings,
I'm using
react-redux-starter-kit
's latest release on the front-end, and Django 1.11.2 on the back-end.In the release version 2.0.0, the configurations I've learned that are necessary to communicate with the back-end worked, but now with the newest release I'm experiencing an
undefined
payload when accessing the endpoint responsible for simply returning data.These are the following I've done to make it communicate with the API. Starting with
server/main.js
, I've added:Then, inside
createStore.js
:Then, I created Redux actions, located in
store/modules/
, for example:I'd then import these methods within the
containers/
withinroutes/
and access it from the component, which then returnspayload: undefined
if Iconsole.log
theaction
parameter.I'm posting here wondering if there'd be something else to be done on this new release.