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

Redux: Updating Data on the Server

Redux: Updating Data on the Server

5:24
We will learn how to wait until the item is updated on the server, and then update the corresponding local state.
Watch this lesson now
Avatar
egghead.io

We will learn how to wait until the item is updated on the server, and then update the corresponding local state.

Avatar
mobility-team

Great journey with Redux. Incredible work you did there! Thanks Dan!

Avatar
Trace

I am a little confused by the implementation of

return shouldRemove ?
state.filter(id => id !== toggledId) :
state

in the handleToggle function

is filter referencing filter that was params prop passed by withRouter?
or is it just a method on that is being used on the state object? that you passed as an argument in the handleToggle function?

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?