1. 12
    Redux: Wrapping dispatch() to Log Actions
    4m 31s

Redux: Wrapping dispatch() to Log Actions

InstructorDan Abramov

Share this video with your friends

Send Tweet

We will learn how centralized updates in Redux let us log every state change to the console along with the action that caused it.

Shaun
~ 7 years ago

Regarding the very last utterance of the video, transcribed like this: "or [inaudible 4:29] transform for Browserify". If anyone is curious I think he's saying "envify". I.e.,

https://github.com/hughsk/envify

Jose Hernandez
~ 6 years ago

Nowadays it's better to just use Redux DevTools.

J. Matthew
~ 5 years ago

I was already using a prepackaged version of this logger in my project, so it's great fun to see how it actually works. This is an excellent example of enhancing an existing function in a very clean way.

(For those interested in functional programming techniques, it's also an excellent example of a higher-order function, i.e. one that uses closure and returns a function.)

Brendan Whiting
~ 4 years ago

I'm not sure why we needed this allIds list. Can't we just Object.keys() the todos object if we need the ids?