trying to delete from an atom yields Error: Rendered fewer hooks than expected. This may be caused by an accidental early return statement
i am trying to build a workout and the user will add an exercise in which case they will be redirected to another page where they can select an exercise and input the number of desired sets and reps. This has no issue and works smoothly. however when i try to delete an exercise i am facing difficulty
Jotai infinite loop with useAtom
I’m using React, Suspense, and Jotai.
I have a list of items where by, when one item is clicked, a modal pops up and based on the item’s id
, it makes an api call for detailed information about the item.