Skip to content

fix: Recent songs stuck in loading state after filtering by category#89

Merged
tomast1337 merged 1 commit intodevelopfrom
fix/category-fetching
Apr 27, 2026
Merged

fix: Recent songs stuck in loading state after filtering by category#89
tomast1337 merged 1 commit intodevelopfrom
fix/category-fetching

Conversation

@Bentroen
Copy link
Copy Markdown
Member

Removes re-fetching recent songs on useEffect and calls it explicitly when:

  • loading a new page;
  • changing the category.

This removes the need for useEffect on initial load, since the first page of recent songs is loaded server-side - preventing duplicate page load issues as we've had in the past.

Fixes #87

Removes re-fetching on `useState` and calls it explicitly when loading a new page or changing the category.

Fixes #87
@Bentroen Bentroen requested a review from tomast1337 April 27, 2026 13:28
@tomast1337 tomast1337 merged commit 120685e into develop Apr 27, 2026
3 checks passed
@tomast1337 tomast1337 deleted the fix/category-fetching branch April 27, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recent songs stuck in loading state after filtering by category

2 participants