Skip to content

Conversation

benceruleanlu
Copy link
Member

@benceruleanlu benceruleanlu commented Sep 6, 2025

Summary

Fix slot layout sync initialization timing and properly clear slot layouts when switching between Vue and LiteGraph rendering modes.

Changes

  • What:
    • Add proper lifecycle management for slot layout sync initialization
    • Clear all slot layouts when switching between Vue and LiteGraph rendering modes
    • Fix timing issues where slot sync could start before canvas is ready
    • Prevent duplicate slot registrations from conflicting sync mechanisms

Review Focus

  • The consolidated watch in GraphCanvas.vue that manages slot sync lifecycle based on rendering mode
  • The new clearAllSlotLayouts() method that ensures clean state transitions between modes
  • The attemptStart() pattern that returns success status to prevent invalid state tracking

Fixes #5363

@benceruleanlu benceruleanlu requested a review from a team as a code owner September 6, 2025 07:46
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 6, 2025
Copy link

github-actions bot commented Sep 6, 2025

🎭 Playwright Test Results

All tests passed across all browsers!

⏰ Completed at: 09/06/2025, 07:55:32 AM UTC

📊 Test Reports by Browser


🎉 Your tests are passing across all browsers!

Copy link
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@christian-byrne christian-byrne merged commit 9122a47 into main Sep 6, 2025
23 checks passed
@christian-byrne christian-byrne deleted the consolidate-slot-sync-watch branch September 6, 2025 08:49
@benceruleanlu benceruleanlu mentioned this pull request Sep 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor slot position sync to support slot position ownership in different rendering system (Vue and LiteGraph)
2 participants