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
Problem:
Opening the "Add Member" dialog triggers a full re-render of the entire MembersTable component tree. This was profiled with React Scan and confirmed at scale with 50 members/invitations.
Root Cause:
inviteDialogOpen state lives inside MembersTable. When the "+ Add" button is clicked, setInviteDialogOpen(true) updates state on the parent component, causing the entire table — all rows, cells, badges, and dropdowns — to re-render unnecessarily.
Same issue exists for changePasswordDialogOpen state.
Proposed Fix: Basically Members Table Refactoring and Extract the invite button + dialog into an isolated InviteButton component so the open/close state is scoped locally and doesn't bubble up to MembersTable.