Skip to content

Title: Infinite Fetching Loop and Memory Leak in fetchBooksFromDB Function #220

Description

@dev-george-nikolaidis

Describe the bug
The fetchBooksFromDB function triggers an infinite loop of data fetching when used in conjunction with useEffect, leading to significant performance degradation and a memory leak.

Expected Behavior

fetchBooksFromDB should 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

memoryLeak

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilityThis is a issue related to a11y/accessibilitybackendbugSomething isn't workingcriticalThis is a critical issue or PR.devopsThis is a devops feature or issueenhancementNew feature or requestfeature requestthis is a feature requestfrontendWork on Frontendfullstackgood first issueGood for newcomershelp wantedExtra attention is neededneeds-reviewThis issue, discussion or PR needs reviewperformanceThis is an issue related to the application performancequestionFurther information is requestedusabilityThis is related to UX or usability

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions