disposeOnUnmount(componentInstance, propertyKey | function | function[]) Function (and decorator) that makes sure a function (usually a disposer such as the ones returned by reaction , autorun , etc.) is automatically executed as part of the componentWillUnmount lifecycle event.