Refactor: Complete API and cache improvements

This commit is contained in:
gpt-engineer-app[bot]
2025-10-31 12:22:06 +00:00
parent 0d16bb511c
commit 631ce9c89e
8 changed files with 219 additions and 254 deletions

View File

@@ -64,8 +64,8 @@ export function useProfileUpdateMutation() {
invalidateProfileStats(userId);
invalidateProfileActivity(userId);
// If display name changed, invalidate user search results
if (updates.display_name) {
// If display name or username changed, invalidate user search results
if (updates.display_name || updates.username) {
invalidateUserSearch();
}