Skip to content

PM-4309 remove ai reviewers when removing config#1740

Merged
vas3a merged 1 commit intodevelopfrom
PM-4302_ai-config-fixes
Mar 16, 2026
Merged

PM-4309 remove ai reviewers when removing config#1740
vas3a merged 1 commit intodevelopfrom
PM-4302_ai-config-fixes

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Mar 16, 2026

When user clicks remove ai configs, we need to also remove the ai reviewers

setConfigurationMode(null)
resetConfiguration()
}, [setConfigurationMode, resetConfiguration, configId])
}, [challenge.reviewers, configId, onUpdateReviewers, resetConfiguration, setConfigurationMode])

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ performance]
The dependency array for the useCallback hook now includes challenge.reviewers, which is an array. This could lead to unnecessary re-creations of the callback if the array reference changes, even if its contents do not. Consider using a stable reference or a different approach to avoid unnecessary re-renders.

@vas3a vas3a merged commit fdcc4f0 into develop Mar 16, 2026
6 checks passed
@vas3a vas3a deleted the PM-4302_ai-config-fixes branch March 16, 2026 09:26
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