GideonNeedleman / 5x5

0 stars 0 forks source link

GideonNeedleman/issue116 #118

Closed GideonNeedleman closed 7 months ago

GideonNeedleman commented 7 months ago

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