Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ziofill
· 3mo ago · 0 comments
Sounds very cool! What do you mean by “revert side effects it created”?
Comments
[–]
ef2k
3mo ago
Anythign that needs to be cleaned up or undone goes in ctx.effect. It returns the "inverse" (the cleanup function) when the plugin loads. Cordis then stores it and runs it when the plugin unloads. Take a look at 5.1.1 in the paper.