Skip to content

fix: Members dialog stale workspace data#5710

Merged
kof merged 3 commits into
mainfrom
fix/members-stale-workspace-data
Apr 20, 2026
Merged

fix: Members dialog stale workspace data#5710
kof merged 3 commits into
mainfrom
fix/members-stale-workspace-data

Conversation

@kof
Copy link
Copy Markdown
Member

@kof kof commented Apr 20, 2026

No description provided.

kof added 3 commits April 20, 2026 18:57
Track which workspace the cached listMembers response belongs to.
Only expose that data when the tracked workspaceId matches the current
workspace; otherwise return undefined so the list shows 'Loading…'
instead of members from the previously-viewed workspace.

Extract selectMembersData as a pure function and add unit tests.
Instead of tracking which workspace the cached data belongs to inside
the component, add key={workspace.id} on ManageMembersDialog in both
parent usages. When the workspace changes React remounts the component,
resetting all internal state (including the useQuery data) so stale
member data from the previous workspace can never appear.
@kof kof merged commit 4be8a03 into main Apr 20, 2026
26 of 30 checks passed
@kof kof deleted the fix/members-stale-workspace-data branch April 20, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant