Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / src / components / features / Portal
  ..
  Portal.tsx
  README.md
  deps.ts
  index.ts
  typings.ts
Size: Mime:

todo

  • add tests
  • add snapshot
  • remove the id thing
  • add same tech we used in ClickBoundary

note

this was in render, but with the componentDidMount, it likely 99% is never hit

    /**
     * @todo this is unused since isComponentMounted never happens?
     * @note - HUGE perf diff here when it returns children
     *         otherwise, it does not serverside render
     */
    if (
      canUseDOM === false ||
      process.env.NODE_ENV === 'test' ||
      process.env.IS_SSR_TEST
    ) {
      return (
        <div id={this.props.id || 'portal'} className={this.className}>
          {this.props.children}
        </div>
      )
    }