The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Matt Wallace (3) [Avatar] Offline
#1
In the PDF listing 4.12 -
getState().tasks.tasks

should be:
getState().tasks
TrueWill (22) [Avatar] Offline
#2
Agreed. (Incidentally I think this is due to later section 4.6.1, where tasks.tasks is introduced; that would need to be updated there.)

Related to this, I don't believe the (dispatch, getState) thunk parameter option was discussed prior to the exercise; that knowledge is necessary to solve it.

Also in listing 4.11, the code could call client.put instead and then would not have to specify the base URL.
Will Faurot (8) [Avatar] Offline
#3
Thanks for the heads up and sorry for the issues! Working on fixing all of these:

* Listing 4.12 - good catch, we may have shuffled a few sections in this chapter around the change to the shape of the data in Redux.
* client.put - updated. This is what we have in the code, but the manuscript was out of date
* Good point about getState, taking a look at the best way to fix this, which may be shuffling a section or two around.