Skip to content
Discussion options

You must be logged in to vote

Yeah, this is correct. If you want to correctly handle deletes, you need finalizers. Otherwise you have no guarantee that you get a delete event.

Internally, we don't pass the full event around, just the ObjectRef (possibly mapped from a related object via a mapper / owner refs), so if the object is gone, it is gone. It's perhaps a bit awkward that we do bubble this up as an error, but you can match on this case; Error::ObjectNotFound (emitted via applier part) in your error_policy if it's expected or something you can handle out-of-bound.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Danil-Grigorev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants