api
api copied to clipboard
Prevent hook loops
If an afterUpdate hook calls an update method to the same collection it is associated with, an endless update loop would kick in with catastrophic consequences.
Although it is an edge case due to programming error, we should be able to prevent it.