PrimeAcademy / biscayne-syllabus

1 stars 4 forks source link

My Exercise.jsx file was giving me an infinite loop Delete #18

Closed AsiaOsman06 closed 1 month ago

AsiaOsman06 commented 1 month ago

Description

Your Real Name

Asia Osman

What do you want to happen? when i tried to add new exercise it does add but with different infinity empty delete button What is actually happening?

Screenshots / Code Snippets

Screenshot 2024-05-31 at 1 44 16 PM

What did you try? Who did you ask?

What branch is your code on? Did you git push?

https://github.com/AsiaOsman06/FitnessFollower_App

When was the last time you took a break?

matthew-black commented 1 month ago

It was an infinite loop because your addExercise Saga function was calling itself over and over again. We needed to modify it to call the fetchExercises function after a successful POST request.