Sharing state between beforeDelete and afterDelete lifecycle hooks

I’m facing the same problem.
According to the documentation, I should be able to share a state between hooks.