Skip to content

perf: use selector subscriptions in diagram picker#38

Merged
charlesrhoward merged 1 commit intomainfrom
codex/feat-26-diagram-picker-selectors
Feb 21, 2026
Merged

perf: use selector subscriptions in diagram picker#38
charlesrhoward merged 1 commit intomainfrom
codex/feat-26-diagram-picker-selectors

Conversation

@charlesrhoward
Copy link
Contributor

@charlesrhoward charlesrhoward commented Feb 21, 2026

Summary

  • replace useCanvasStore() full-store subscription in DiagramPicker
  • subscribe to only the state slices/actions used by the component

Validation

  • pnpm build

Closes #26


Note

Low Risk
Pure refactor of how state is selected in a UI component; minimal behavioral risk aside from potential missed selector wiring causing stale UI updates.

Overview
Refactors DiagramPicker to replace the full useCanvasStore() subscription with per-field selector subscriptions for only the state slices and actions it uses, reducing unnecessary re-renders.

No behavior changes to diagram loading/saving/renaming/deleting; this is a component-level performance optimization.

Written by Cursor Bugbot for commit 18831a9. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Feb 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
drawit Ready Ready Preview, Comment Feb 21, 2026 9:42pm

Request Review

@charlesrhoward charlesrhoward force-pushed the codex/feat-26-diagram-picker-selectors branch from db80e51 to 18831a9 Compare February 21, 2026 21:42
@charlesrhoward charlesrhoward merged commit 9cffd35 into main Feb 21, 2026
4 checks passed
@charlesrhoward charlesrhoward deleted the codex/feat-26-diagram-picker-selectors branch February 21, 2026 21:43
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.

Performance: Replace full-store subscription in DiagramPicker

1 participant