Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Fixes re-render issues caused by unstable callback references:

  • Memoize useReviews return object to prevent creating new object on every render
  • Destructure addReview in AIView and depend only on it (not whole reviews object) so handleReviewNote callback stays stable

Without this fix, every render creates a new reviews object → handleReviewNote callback recreated → all components receiving it re-render.

Generated with mux

- Memoize useReviews return object to prevent new object on every render
- Destructure addReview in AIView and depend only on it (not whole reviews
  object) so handleReviewNote callback stays stable

_Generated with mux_
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@ammario ammario merged commit efd8a16 into main Dec 9, 2025
18 checks passed
@ammario ammario deleted the fix-review-note-rerenders branch December 9, 2025 04:20
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.

2 participants