-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Description
Search API Triggered Multiple Times When No Data Is Available
Description
I observed that the search API is being called multiple times unnecessarily across several modules such as Quotes, Invoices, Payments, and other sections, even when there is no data available.
Observed Behavior
- On initial page load of modules like Quotes / Invoices / Payments, the search request is triggered multiple times automatically.
- The Network tab shows repeated search API calls with the same parameters.
- The API returns a successful response with empty data.
- The UI correctly displays a “No data” state, but repeated API calls still occur.
- No user interaction (search input, refresh, pagination, or filters) is performed.
Expected Behavior
- The search API should be triggered only once on initial load.
- When the response contains no data, additional automatic calls should not be triggered.
- Search calls should happen again only on explicit user actions, such as:
- Typing in the search input
- Clicking refresh
- Changing filters or pagination
Impact
- Unnecessary network requests across multiple pages.
- Increased backend load.
- Potential performance issues as the application scales.
Additional Notes
- Issue is reproducible consistently across multiple modules.
- Appears to be caused by shared or global search logic.
- Screenshots attached showing repeated calls in the Network tab.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels