Skip to content

fix: create fresh Dagre graph instance per layout call#203

Open
vanshaj2023 wants to merge 4 commits into
ioflux-org:mainfrom
vanshaj2023:fix/dagre-stale-nodes-199
Open

fix: create fresh Dagre graph instance per layout call#203
vanshaj2023 wants to merge 4 commits into
ioflux-org:mainfrom
vanshaj2023:fix/dagre-stale-nodes-199

Conversation

@vanshaj2023

Copy link
Copy Markdown
Contributor

Summary

Move dagreGraph instantiation from module scope into getLayoutedElements so each schema change starts with a fresh Dagre graph, preventing stale nodes from prior schemas polluting layout calculations.

What kind of change does this PR introduce

Bug fix

Issue Number

Closes #199

Screenshots/Video

N/A — layout correctness fix, no visual regression introduced.

Does this PR introduce a breaking change?

No

If relevant, did you update the documentation?

No

@vanshaj2023

Copy link
Copy Markdown
Contributor Author

Hi @AgniveshChaubey @jagpreetrahi
Please review this.

@itvi-1234

Copy link
Copy Markdown
Contributor

version bump is required

@vanshaj2023

Copy link
Copy Markdown
Contributor Author

Done, Please check this

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.

Bug: Module-level Dagre graph instance accumulates stale nodes across schema changes

2 participants