Skip to content

Fix hooks to avoid unnecessary re-renders#10820

Merged
scidomino merged 1 commit into
mainfrom
tomm_react_fixes
Oct 9, 2025
Merged

Fix hooks to avoid unnecessary re-renders#10820
scidomino merged 1 commit into
mainfrom
tomm_react_fixes

Conversation

@scidomino

@scidomino scidomino commented Oct 9, 2025

Copy link
Copy Markdown
Collaborator

TLDR

These hooks were not properly memoized and it was causing unnecessary re-renders.

Dive Deeper

Normally, this is not a super big deal but I spotted it while investigating #10517

Reviewer Test Plan

Basic smoke test is sufficient. This is a pure refactor.

Linked issues / bugs

Contributes to #10517

@scidomino scidomino marked this pull request as ready for review October 9, 2025 17:58
@scidomino scidomino requested a review from a team as a code owner October 9, 2025 17:58
@github-actions

github-actions Bot commented Oct 9, 2025

Copy link
Copy Markdown

Size Change: +562 B (0%)

Total Size: 17.7 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 17.7 MB +562 B (0%)
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB 0 B
./bundle/sandbox-macos-permissive-open.sb 830 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-closed.sb 3.29 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B

compressed-size-action

@scidomino scidomino enabled auto-merge October 9, 2025 18:02
@scidomino scidomino added this pull request to the merge queue Oct 9, 2025
Merged via the queue into main with commit cd354ae Oct 9, 2025
20 checks passed
@scidomino scidomino deleted the tomm_react_fixes branch October 9, 2025 18:08
giraffe-tree pushed a commit to giraffe-tree/gemini-cli that referenced this pull request Oct 10, 2025
@sripasg sripasg added the size/m A medium sized PR label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m A medium sized PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants