You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Medusa admin dashboard is making excessive network requests to fetch notifications. Every few seconds, multiple requests are being made to the notifications endpoint, potentially impacting performance and creating unnecessary server load.
System information
Medusa version: Latest
Node.js version: v20.16
Database: PostgreSQL
Operating system: macOS
Browser: Chrome
Steps to reproduce the behavior
Log into Medusa admin dashboard
Create or accumulate approximately 100+ notifications in the system
Open browser developer tools (Network tab)
Click notification icons on right side top bar.
Observe continuous requests to /admin/notifications endpoint
Notice multiple concurrent requests being made frequently, each fetching large amounts of data
Expected behavior
Notification requests should be properly debounced/throttled
Requests should only be made when necessary (e.g., when notification panel is open)
Should implement proper caching to reduce server load
Should avoid duplicate requests within short time intervals
endObserver.current = new IntersectionObserver((entries) => {
if (entries[0].isIntersecting && hasNextPage) {
** Commenting out this function stops the excessive requests
// fetchNextPage();
}
});
Additional context
Issue becomes more pronounced when notification count more than ~100 records
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
The Medusa admin dashboard is making excessive network requests to fetch notifications. Every few seconds, multiple requests are being made to the notifications endpoint, potentially impacting performance and creating unnecessary server load.
System information
Steps to reproduce the behavior
/admin/notifications
endpointExpected behavior
Screenshots
Screen.Recording.2568-01-09.at.13.20.11.mp4
Code snippets
/** Current problematic implementation
@medusajs/admin-bundler/node_modules/.vite/deps/@medusajs_dashboard.js
endObserver.current = new IntersectionObserver((entries) => {
if (entries[0].isIntersecting && hasNextPage) {
** Commenting out this function stops the excessive requests
// fetchNextPage();
}
});
Additional context
The text was updated successfully, but these errors were encountered: