Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const detachLinkEvents = () => {
event.removeCallback('openPushNotification', handleOpenPushNotification);
event.removeCallback('openDeepLink', handleOpenDeepLink);
};
componentWillUnmount() {
clearTimeout(this.runningTimeout);
event.removeCallback(EVENT_ADD_TO_CART_MISSING_VARIANT, this.handleMissingVariant);
}
const detachLinkEvents = () => {
event.removeCallback('openPushNotification', handleOpenPushNotification);
event.removeCallback('openDeepLink', handleOpenDeepLink);
};
componentWillUnmount() {
event.removeCallback(APP_EVENT_VIEW_WILL_APPEAR, this.setVisible);
event.removeCallback(APP_EVENT_VIEW_WILL_DISAPPEAR, this.setHidden);
}
componentWillUnmount() {
event.removeCallback(EVENT_KEYBOARD_WILL_CHANGE, this.handleKeyboardChange);
router.update(this.context.id, {
scrollTop: this.ref.current.scrollTop,
}, false);
}
componentWillUnmount() {
Event.removeCallback(EVENT_KEYBOARD_WILL_CHANGE, this.handleKeyboardChange);
}
componentWillUnmount() {
clearTimeout(this.runningTimeout);
event.removeCallback(EVENT_ADD_TO_CART_MISSING_VARIANT, this.handleMissingVariant);
}
componentWillUnmount() {
event.removeCallback(APP_EVENT_VIEW_WILL_APPEAR, this.setVisible);
event.removeCallback(APP_EVENT_VIEW_WILL_DISAPPEAR, this.setHidden);
}
const handler = async () => {
event.removeCallback(APP_EVENT_APPLICATION_WILL_ENTER_FOREGROUND, handler);
[{ status }] = await getAppPermissions([permissionId]);
resolve(status === STATUS_GRANTED);
};
componentWillUnmount() {
router.update(this.context.id, {
scrollTop: this.ref.current.scrollTop,
}, false);
event.removeCallback(EVENT_KEYBOARD_WILL_CHANGE, this.handleKeyboardChange);
}