jakji93 / airon-fitness

AIRON Fitness is an AI-powered fitness companion supporting your personal health journey by delivering customized fitness and meal plans tailored to your goals and preferences.
https://airon-fitness.onrender.com/
MIT License
3 stars 2 forks source link

bug: fix shared state among exercises #104

Closed d-x-s closed 11 months ago

d-x-s commented 11 months ago

Significant bug where state handlers update state for each GuidedExercise simultaneously. Happened due to the way I changed conditional rendering of the Dictaphone.

Before, if the slide was in view, the Dictaphone would disable itself. Now, GuidedExercises will control whether the Dictaphone is disabled or not by rendering a separate disabled component.

This is due to some weirdness with carousel rendering, where each slide is actually rendered at the same time upon loading the carousel component in.