Skip to content

tryOnScopeDispose ​

Safe onScopeDispose. Call onScopeDispose() if it's inside an effect scope lifecycle, if not, do nothing

Usage ​

js
import { tryOnScopeDispose } from '@uni-helper/uni-use'

tryOnScopeDispose(() => {

})

Released under the MIT License.