How to use the @uirouter/core.isFunction function in @uirouter/core

To help you get started, we’ve selected a few @uirouter/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 ui-router / react / src / components / UISref.tsx View on Github external
handleClick = e => {
    const childOnClick = this.props.children.props.onClick;
    if (isFunction(childOnClick)) {
      childOnClick(e);
    }

    if (!e.defaultPrevented && !(e.button == 1 || e.metaKey || e.ctrlKey)) {
      e.preventDefault();
      let params = this.props.params || {};
      let to = this.props.to;
      let options = this.getOptions();
      this.props.router.stateService.go(to, params, options);
    }
  };
github ui-router / react / src / components / hooks / useFirstRenderEffect.ts View on Github external
return () => {
      if (isFunction(cleanup.current)) cleanup.current();
    };
  }, []);