The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Redux: Supplying the Initial State

Redux: Supplying the Initial State

4:13
We will learn how to start a Redux app with a previously persisted state, and how it merges with the initial state specified by the reducers.
Watch this lesson now
Avatar
egghead.io

We will learn how to start a Redux app with a previously persisted state, and how it merges with the initial state specified by the reducers.

Avatar
strajk

Dan, thanks for everything!

Can you please explain a little bit your reasoning on why you call combined reducers todoApp and not todoReducers ... I know it's just a name, but still… :)

In reply to egghead.io
Avatar
Elliot will

Dan! What is the font that you're using?

Avatar
sabha

guessing another way to call - todoAppState :)

In reply to strajk
Avatar
Dan Abramov

Can you please explain a little bit your reasoning on why you call combined reducers todoApp and not todoReducers ... I know it's just a name, but still… :)

I try to call them identical to the names of the parts of the state they manage so it’s convenient to import / combine them. combineReducers({ todos: todosReducer }) is awkward. As for top-level reducers, I don’t really care how to call them, but todoReducers is confusing because I’d expect that to be an array of reducers :-). todoApp means it’s the reducer function for the whole app. But yea, the naming doesn’t matter and is up to you.

In reply to strajk
Avatar
Dan Abramov

The font is Operator Mono.

In reply to Elliot will
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?