add 'onMutation' (experimental) function to Base