-
Notifications
You must be signed in to change notification settings - Fork 54
Title: Infinite Fetching Loop and Memory Leak in fetchBooksFromDB Function #220
Copy link
Copy link
Closed
Labels
accessibilityThis is a issue related to a11y/accessibilityThis is a issue related to a11y/accessibilitybackendbugSomething isn't workingSomething isn't workingcriticalThis is a critical issue or PR.This is a critical issue or PR.devopsThis is a devops feature or issueThis is a devops feature or issueenhancementNew feature or requestNew feature or requestfeature requestthis is a feature requestthis is a feature requestfrontendWork on FrontendWork on Frontendfullstackgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededneeds-reviewThis issue, discussion or PR needs reviewThis issue, discussion or PR needs reviewperformanceThis is an issue related to the application performanceThis is an issue related to the application performancequestionFurther information is requestedFurther information is requestedusabilityThis is related to UX or usabilityThis is related to UX or usability
Description
Activity
Metadata
Metadata
Assignees
Labels
accessibilityThis is a issue related to a11y/accessibilityThis is a issue related to a11y/accessibilitybackendbugSomething isn't workingSomething isn't workingcriticalThis is a critical issue or PR.This is a critical issue or PR.devopsThis is a devops feature or issueThis is a devops feature or issueenhancementNew feature or requestNew feature or requestfeature requestthis is a feature requestthis is a feature requestfrontendWork on FrontendWork on Frontendfullstackgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededneeds-reviewThis issue, discussion or PR needs reviewThis issue, discussion or PR needs reviewperformanceThis is an issue related to the application performanceThis is an issue related to the application performancequestionFurther information is requestedFurther information is requestedusabilityThis is related to UX or usabilityThis is related to UX or usability
Projects
- StatusShow more project fieldsDone
Describe the bug
The
fetchBooksFromDBfunction triggers an infinite loop of data fetching when used in conjunction withuseEffect, leading to significant performance degradation and a memory leak.Expected Behavior
fetchBooksFromDBshould fetch the data once and stop, without causing an infinite loop or memory leaks.Actual Behavior
The function continuously fetches data without stopping, causing browser performance issues and memory leaks.
Additional Information