Skip to content

17 investigate why relaxed mode leaves dangling references - #20

Merged
SusieGoebel merged 4 commits into
mainfrom
17-investigate-why-relaxed-mode-leaves-dangling-references
Nov 18, 2026
Merged

SusieGoebel merged 4 commits into
mainfrom
17-investigate-why-relaxed-mode-leaves-dangling-references

Conversation

@Noah1891

Copy link
Copy Markdown
Collaborator

closes #17
$destruct now iterates a set of incoming links that includes a list of all references that are currently pointing to the object but are not reachable via opposite

@Noah1891
Noah1891 requested a review from SusieGoebel November 16, 2026 23:00
@Noah1891 Noah1891 linked an issue Nov 16, 2026 that may be closed by this pull request
import {DemoElement1, DemoElement2, DemoElement3} from "./model-without-opposite";

describe('Model Deletion with Uni-directional References', () => {
it('leaves a dangling reference in a list link', () => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why would it "leave a dangling reference"? This is supposed to NOT leave that, right? So makes sure that the reference is found and removed

expect(root.children1).not.toContain(elem2);
expect(elem1.friends).not.toContain(elem2);
});
it('leaves a dangling reference in a single link', () => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same here

@Noah1891
Noah1891 requested a review from SusieGoebel November 17, 2026 10:52
@SusieGoebel SusieGoebel self-assigned this Nov 18, 2026
@SusieGoebel
SusieGoebel merged commit 52899da into main Nov 18, 2026
2 checks passed
@SusieGoebel
SusieGoebel deleted the 17-investigate-why-relaxed-mode-leaves-dangling-references branch November 18, 2026 09:50
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.

Investigate why relaxed mode leaves dangling references

2 participants