ucdavis / Harvest

Harvest Farm Project Tracking Website and Mobile App
MIT License
2 stars 1 forks source link

update internal state if parent changes itself #889

Closed laholstege closed 10 months ago

laholstege commented 10 months ago

so, in some ways this is the easiest/cleanest way to get the job done (though it will call this effect every time the state or prop changes), but it's not what we're supposed to do–we're supposed to move the state up and have it be managed by a parent. the easiest way to do that would be to type quantity as a string and modify the object itself, or make a state at the parent level and manage it there. thoughts?