PrimeAcademy / biscayne-syllabus

1 stars 4 forks source link

infinite re-render loop when refreshing user data. #25

Closed NekkidBear closed 1 week ago

NekkidBear commented 1 week ago

Description

I'm assisting Zeyini with the user profile edit functionality. If we comment out the refresh, the user is able to update their info, but they have to refresh the profile page to see the changes. If we try to trigger a refresh using redux and sagas, The page keeps looping infinitely, even when adding checks to limit the trigger.

Your Real Name Jason

What do you want to happen? The page gets the current user data once when the page mounts. After the user makes changes, and saves them, the user profile page should refresh with the new information.

What is actually happening? There are no error codes; it just infinitely loops until the server crashes, or I restart it. It's stable until I go back to the user Page

Screenshots / Code Snippets

https://github.com/PrimeAcademy/biscayne-syllabus/assets/52714446/29916207-6e03-46ee-af86-75ee9f72daae

What did you try? Who did you ask?

I've tried googling, and asking chat GPT for debugging assistance, I also asked Janet and Alex for help. (Mustafe was head down in the messaging)

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

branch: /feature/profile-pic-upload

When was the last time you took a break?

Now. :) 14:05 - 14:15