How to use the @flopflip/react-broadcast.injectFeatureToggles function in @flopflip/react-broadcast

To help you get started, we’ve selected a few @flopflip/react-broadcast 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 commercetools / merchant-center-application-kit / packages / application-shell / src / components / quick-access / quick-access.js View on Github external
}
        }}
        search={this.search}
        executeCommand={this.executeCommand}
        onClose={this.props.onClose}
        getNextCommands={this.getNextCommands}
      />
    );
  }
}

export default flowRight(
  withApollo,
  injectIntl,
  withRouter,
  injectFeatureToggles(['pimSearch', 'customApplications', 'canViewDashboard']),
  withApplicationContext(),
  connect(null, (dispatch, ownProps) => ({
    pimSearchProductIds: searchText =>
      dispatch(
        sdkActions.post({
          uri: `/${ownProps.applicationContext.project.key}/search/products`,
          mcApiProxyTarget: MC_API_PROXY_TARGETS.PIM_SEARCH,
          payload: {
            query: {
              fullText: {
                field: 'name',
                language: ownProps.applicationContext.dataLocale,
                value: searchText,
              },
            },
            sort: [

@flopflip/react-broadcast

A feature toggle wrapper to use LaunchDarkly with React

MIT
Latest version published 5 months ago

Package Health Score

77 / 100
Full package analysis