warning changing workout in select input dropdown should reset number of sets to 1. But I still want to populate correct default sets when being edited.
I accomplish this by using a ref to count the number of renders before changing option will reset numSets to 1. This is 4 renders, however this might be because of strict mode. In which case need to reduce to 2 renders for built app file
fixes #116
am able to edit workouts
warning changing workout in select input dropdown should reset number of sets to 1. But I still want to populate correct default sets when being edited.
I accomplish this by using a ref to count the number of renders before changing option will reset numSets to 1. This is 4 renders, however this might be because of strict mode. In which case need to reduce to 2 renders for built app file