The Git tag for this section is redux-workflow. This tag contains additional code since the last section, so you may wish to switch to it now, or add the differences yourself, which are described next.
For more detailed instructions, see the To get the most out of this book section in the Preface.
For more detailed instructions, see the To get the most out of this book section in the Preface.
Putting aside the question of how to complete our test coverage, how can we fix the problem?
Let's see whether we can restate it. Previously, our onSave callback was used to notify App that a customer had been saved. That callback was passed a customer object, but now the callback is gone and the customer is safely tucked away in our Redux store.
We can split the problem into two distinct subproblems:
- How can we trigger workflow and render the AppointmentForm?
- How can we pull out the customer from Redux?
As we solve these problems, we have to keep in...