Skip to content

Fix observer removal on invalidated subgraphs - #73

Merged
jcmosc merged 1 commit into
jcmosc:mainfrom
OpenSwiftUIProject:fix/remove_observer
Sep 27, 2026
Merged

jcmosc merged 1 commit into
jcmosc:mainfrom
OpenSwiftUIProject:fix/remove_observer

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Removing an observer after subgraph invalidation could abort, including when called from an invalidation callback. Make IAGSubgraphRemoveObserver return when the subgraph storage is invalidated.

Add regression tests for both paths. Both tests abort without the fix and pass with it.

@Kyle-Ye

Kyle-Ye commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

Also merge this, could you also help release a new version? Thanks

@jcmosc
jcmosc merged commit 8cd4ceb into jcmosc:main Sep 27, 2026
2 checks passed
@Kyle-Ye
Kyle-Ye deleted the fix/remove_observer branch September 27, 2026 18:53
@jcmosc

jcmosc commented Sep 27, 2026

Copy link
Copy Markdown
Owner

Thanks! I'll push a new version soon

@jcmosc

jcmosc commented Sep 29, 2026

Copy link
Copy Markdown
Owner

@Kyle-Ye This is available in 0.6.0.

@Kyle-Ye

Kyle-Ye commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

Yeah. I integrated it yesterday. OpenSwiftUIProject/OpenSwiftUI#1115

@Kyle-Ye

Kyle-Ye commented Sep 29, 2026

Copy link
Copy Markdown
Contributor Author

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.

2 participants