gray-mueller / gray-mueller/foodpanda-clone-using-react-native

Loader Keeps Spinning on Tab After Adding a Category – Admin Panel

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When adding a new category from the Product page in the admin panel, a loader appears on the tab (likely the browser tab or section header) and continues spinning indefinitely, even after the category has been successfully added. This suggests that the action is incomplete or stuck, although the category may have been added in the background.

To Reproduce
Steps to reproduce the behavior:

Open the Product page in the admin panel

Use the dropdown to add a new category

Observe the tab or header loader animation

Notice that the loader does not stop, even after the action is done

Expected behavior
The loader should disappear once the category is successfully added and the action is complete, indicating to the user that the process is finished.

Screenshots

Recording 2025-06-24 120712.zip

Desktop (please complete the following information):

OS: Windows 11

Browser: Chrome

Version: 123.0.6312.86

Additional context
This may be caused by a missing or delayed response handler after the category creation API call. It can mislead users into thinking the process is still running or has failed. A proper success state and loader dismissal should be implemented.

Contributor guide

Open the contributing guide

Research direction

Start at the Product page in the admin panel and reproduce the category-creation flow in Chrome, then trace the category creation API call and its response handling. Done means the category is added successfully and the tab or section-header loader stops immediately afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.