You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi..
I'm struggling with this all night ( literally ) but can't seem to solve this in any way. I'm trying to fire a action that returns a function ( and inside has a axios promise ) but the error described in the title keeps firing.
This is how I create the store:
import{createStore,applyMiddleware,compose}from'redux';importthunkfrom'redux-thunk'import{syncHistoryWithStore}from'react-router-redux';import{browserHistory}from'react-router';importcreateLoggerfrom'redux-logger'//import the reducersimportrootReducerfrom'../reducers/index';constloggerMiddleware=createLogger();conststore=createStore(rootReducer,applyMiddleware(thunk));exportconsthistory=syncHistoryWithStore(browserHistory,store);exportdefaultstore;
This is my action ( tried everything like return the axios.get or return each of the dispatchers inside it ):
Hi..
I'm struggling with this all night ( literally ) but can't seem to solve this in any way. I'm trying to fire a action that returns a function ( and inside has a axios promise ) but the error described in the title keeps firing.
This is how I create the store:
This is my action ( tried everything like return the axios.get or return each of the dispatchers inside it ):
In a component I just import the store and fire the action using:
Lookin at the redux-thunk code I've added a console.log inside it and the result is on the screenshot below:
This is my app.js ( don't know if it's needed )
Probably it's my own fault but I'm losing my mind over here.
Thank you very much for your time and your module.
Cheers
The text was updated successfully, but these errors were encountered: