How to use the @shopgate/pwa-core/classes/Event.removeCallback function in @shopgate/pwa-core

To help you get started, we’ve selected a few @shopgate/pwa-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shopgate / pwa / components / Router / helpers / link-events / index.js View on Github external
const detachLinkEvents = () => {
  event.removeCallback('openPushNotification', handleOpenPushNotification);
  event.removeCallback('openDeepLink', handleOpenDeepLink);
};
github shopgate / pwa / themes / theme-gmd / pages / Product / components / VariantSelects / index.jsx View on Github external
componentWillUnmount() {
    clearTimeout(this.runningTimeout);
    event.removeCallback(EVENT_ADD_TO_CART_MISSING_VARIANT, this.handleMissingVariant);
  }
github shopgate / pwa / components / Router / helpers / link-events / index.js View on Github external
const detachLinkEvents = () => {
  event.removeCallback('openPushNotification', handleOpenPushNotification);
  event.removeCallback('openDeepLink', handleOpenDeepLink);
};
github shopgate / pwa / libraries / engage / core / providers / AppProvider.jsx View on Github external
componentWillUnmount() {
    event.removeCallback(APP_EVENT_VIEW_WILL_APPEAR, this.setVisible);
    event.removeCallback(APP_EVENT_VIEW_WILL_DISAPPEAR, this.setHidden);
  }
github shopgate / pwa / themes / theme-gmd / components / View / components / Content / index.jsx View on Github external
componentWillUnmount() {
    event.removeCallback(EVENT_KEYBOARD_WILL_CHANGE, this.handleKeyboardChange);

    router.update(this.context.id, {
      scrollTop: this.ref.current.scrollTop,
    }, false);
  }
github shopgate / pwa / libraries / common / components / KeyboardConsumer / index.jsx View on Github external
componentWillUnmount() {
    Event.removeCallback(EVENT_KEYBOARD_WILL_CHANGE, this.handleKeyboardChange);
  }
github shopgate / pwa / pages / Product / components / VariantSelects / index.jsx View on Github external
componentWillUnmount() {
    clearTimeout(this.runningTimeout);
    event.removeCallback(EVENT_ADD_TO_CART_MISSING_VARIANT, this.handleMissingVariant);
  }
github shopgate / pwa / libraries / engage / core / providers / AppProvider.jsx View on Github external
componentWillUnmount() {
    event.removeCallback(APP_EVENT_VIEW_WILL_APPEAR, this.setVisible);
    event.removeCallback(APP_EVENT_VIEW_WILL_DISAPPEAR, this.setHidden);
  }
github shopgate / pwa / libraries / engage / core / actions / grantPermissions.js View on Github external
const handler = async () => {
      event.removeCallback(APP_EVENT_APPLICATION_WILL_ENTER_FOREGROUND, handler);
      [{ status }] = await getAppPermissions([permissionId]);
      resolve(status === STATUS_GRANTED);
    };
github shopgate / pwa / themes / theme-ios11 / components / View / components / Content / index.jsx View on Github external
componentWillUnmount() {
    router.update(this.context.id, {
      scrollTop: this.ref.current.scrollTop,
    }, false);

    event.removeCallback(EVENT_KEYBOARD_WILL_CHANGE, this.handleKeyboardChange);
  }