Skip to content

fix: admin project creation -> user mgmt invalid#26

Merged
liamhess merged 1 commit into
mainfrom
liam/frontend-bug-usermgmt-2jw
Mar 5, 2026
Merged

fix: admin project creation -> user mgmt invalid#26
liamhess merged 1 commit into
mainfrom
liam/frontend-bug-usermgmt-2jw

Conversation

@liamhess

@liamhess liamhess commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

When an admin created a project in the dashboard and immediately navigated to User Management, the new project didn't appear because the admin projects cache wasn't being refreshed.
The useCreateProject mutation only invalidated the dashboard's project cache (queryKeys.projects.all) but not the admin projects cache (queryKeys.admin.projects) that User Management uses.
Added queryClient.invalidateQueries({queryKey: queryKeys.admin.projects}) to the mutation's onSuccess callback.

@liamhess liamhess self-assigned this Mar 5, 2026
@liamhess
liamhess merged commit dcbe527 into main Mar 5, 2026
1 check passed
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