Skip to content

Conversation

@ibetitsmike
Copy link
Contributor

Fixes project expand/collapse bug where clicking one project could affect another project's state.

The toggleProject function had a stale closure issue - it read from expandedProjects which was a new Set recreated on every render. When clicking rapidly, subsequent clicks could use stale state from an earlier render.

Changed to use functional update pattern with setExpandedProjectsArray to always get the current state directly from React.


Generated with mux

The toggleProject function had a stale closure issue - it read from
expandedProjects which was recreated on every render. When clicking
rapidly, subsequent clicks could use stale state.

Changed to use functional update pattern with setExpandedProjectsArray
to always get the current state directly from React.
@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.

@ibetitsmike ibetitsmike added this pull request to the merge queue Dec 9, 2025
Merged via the queue into main with commit 5566cdb Dec 9, 2025
17 of 19 checks passed
@ibetitsmike ibetitsmike deleted the fix-project-collapse-bug branch December 9, 2025 11:00
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