I’ve hit an issue in my Recipe app.
When I add a recipe, local storage updates, but when I edit or delete one, it doesn’t (unless I also add a new recipe to write the whole state back to storage).
My app is here: https://jacksonbates.github.io/fcc-recipe-react/public
The repo is here: https://github.com/jacksonbates/fcc-recipe-react
And I think the problem is something to do with the way componentDidUpdate
works…maybe a child updating isn’t enough to trigger a full re-render that the componentDidUpdate
method recognises?
I handle the lifecycle methods in the recipeBookApp.js
Any ideas?