Skip to content

perf: conditionally mount smart connector layer#36

Merged
charlesrhoward merged 1 commit intomainfrom
codex/feat-24-conditional-smart-connector-layer
Feb 21, 2026
Merged

perf: conditionally mount smart connector layer#36
charlesrhoward merged 1 commit intomainfrom
codex/feat-24-conditional-smart-connector-layer

Conversation

@charlesrhoward
Copy link
Contributor

@charlesrhoward charlesrhoward commented Feb 21, 2026

Summary

  • lazy-load SmartConnectorLayer with next/dynamic
  • mount connector layer only when at least one connection exists

Validation

  • pnpm build

Closes #24


Note

Low Risk
Perf-only change that alters when SmartConnectorLayer is loaded/rendered; main risk is a regression in connector rendering timing when connections are added or removed.

Overview
Reduces initial canvas render cost by switching SmartConnectorLayer to a next/dynamic import with ssr: false.

Also avoids mounting the connector-rendering layer entirely when there are no connections (connections.length > 0), so React Flow isn’t loaded/run for empty diagrams.

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

@charlesrhoward charlesrhoward enabled auto-merge (squash) February 21, 2026 21:20
@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:40pm

Request Review

@charlesrhoward charlesrhoward force-pushed the codex/feat-24-conditional-smart-connector-layer branch from 7cdc2bb to b44bceb Compare February 21, 2026 21:39
@charlesrhoward charlesrhoward merged commit ed12a8c into main Feb 21, 2026
4 checks passed
@charlesrhoward charlesrhoward deleted the codex/feat-24-conditional-smart-connector-layer branch February 21, 2026 21:41
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: Mount connector layer only when connections exist

1 participant