I am looking at my producer right now, right now we are just taking in whatever state we are provided
and immediately returning it.
So of course, that's probably not what we want.
We're going to replace that with a switch statement.
We're going to switch over action type.
So that's going to be the type of the incoming action, so we'll set up different cases for all the
different action types that we want to handle inside this reducer right now.
We really want to handle every possible action type that we have to find.
So inside of the reducer we are putting together, we really want to take care of each of these different
cases.
So I'm going to set up a case for each one will be action type, dot, update cell, and right now I'm
going to put in just a simple return state.
Case action type dot, delete cell.
Mousel.
And our last one is insert cell before.
I'll then also add in our default case.
OK, so there's a good start now, if we wanted to, we could definitely go through each of these different
cases and start putting together some implementation.
But remember, at this point in time, I think it's still just a little bit unclear what the big picture
is of all of our reduc stuff.
I think that we might want to start thinking about our different action characters as well and how those
are going to come together before we spend any time putting together the actual implementation of each
of these different cases.
We should probably make sure that all those different assumptions that we made around the structure
of our actions.
So in other words, all these different interfaces we just wrote out, we should probably make sure
that all these are reasonable assumptions first.
And so that would require us to have to maybe do a little bit of work on our different action creators.
So in other words, we're just going to hold off on a so right here, we're going to eventually come
back and put in some additional implementation for each step.
All right, so now that we've got a producer at a reasonable place, we'll take another pause right
here.
When we come back, the next video will create our actual reduc store inside the store file.
We'll export it from our index dots file and then start wiring all this stuff up to the actual risk
side of our application.