in the following code, could you help to explain the detailed purpose and function and use of const handleAsync function and the Redux.applyMiddleware(ReduxThunk.default) in the following code? this code is from Redux 12 Use Middleware to Handle Asynchronous Actions under http://hysterical-amusement.surge.sh/.
if handleAsync is a action creator, what is its specific use in the original code?
if I add following code to the original code? why are there following problems?
store.subscribe(()=>{
console.log('code is executed: ', state.getState())
})// why doesnt log anything?? means store.dispatch(handleAsync()) did not fire??
store.dispatch(handleAsync());//should use action creator like this?
console.log(store.getState());//why shows nothing?
I think people should also know how to deal with asynchronous redux action transformation, so redux-observable / redux-saga challenges would be great too. I personally do prefer redux-observable.
@P1xt - wow, thanks! That means a lot coming from you! @bonham000 is def responsible for more than I am, but glad to hear youâre enjoying them either way, a lot of work went into them for sure
I went through this last week. I only skimmed the React section but I completed all of the Redux and React-Redux challenges. I didnât find any bugs in those and it was actually the most clear and concise Redux tutorial I have found to date. A+ job, thank you @bonham000 and @no-stack-dub-sack
Im new at code camp and trying to start the program. I have gotten to the point of setting up my github account but need to know how to complete the other steps
Iâm thrilled that I finally found this postâŚas Iâm getting my butt kicked on the dungeon challenge. So, I think Iâll be going back to basics on these challenges. I have one question (probably a dumb one but), these wont update in our camper âmapâ will they?
No, not yet. The beta curriculum doesnât communicate with the mainstream one. Youâre âprogressâ isnât recorded (unless you consider finally being able to build the dungeon crawler as progress )