Skip to content

fix(stories): Stop mutating story tree props - #120715

Draft
scttcper wants to merge 1 commit into
masterfrom
scttcper/mutation/story-tree
Draft

fix(stories): Stop mutating story tree props#120715
scttcper wants to merge 1 commit into
masterfrom
scttcper/mutation/story-tree

Conversation

@scttcper

Copy link
Copy Markdown
Member

Folder expansion was stored by changing the StoryTreeNode passed into render. Opening a story could also call setState during render.

keep expansion local and open the active folder from an effect instead.

Folder expansion was stored by changing the StoryTreeNode passed into render, including setting state during render when the active story changed.

keep expansion local and open the active folder from an effect instead.

Co-Authored-By: Codex <noreply@openai.com>
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant