Skip to content

Commit

Permalink
Merge pull request #40 from vidyaaKhandekar/reburring-issue
Browse files Browse the repository at this point in the history
Fix-Rebuffering issue
  • Loading branch information
gouravmore authored Feb 11, 2025
2 parents 4d68921 + 942ee72 commit 59ecce3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/components/layouts/header/Invitation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,13 @@ const InvitationMenu = () => {
};
// Fetch initial invitations on component mount
useEffect(() => {
fetchInitialInvitations();
const timeoutId = setTimeout(() => {
fetchInitialInvitations();
}, 1000);

return () => {
clearTimeout(timeoutId);
};
}, []);

// Notification cycling logic
Expand Down
12 changes: 11 additions & 1 deletion src/pages/tenant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,17 @@ const Tenant: React.FC = () => {
};

useEffect(() => {
fetchTenantList();
const timeoutId = setTimeout(() => {
// Your function logic here

fetchTenantList();
}, 1000);
// get form data for center create
// getAddCenterFormData();
// getCohortMemberlistData();
return () => {
clearTimeout(timeoutId);
};
}, [openAddNewCohort, pageLimit, pageOffset, sortBy, filters]);

// const getFormData = async () => {
Expand Down

0 comments on commit 59ecce3

Please sign in to comment.