How to use the @shopgate/pwa-benchmark.startup function in @shopgate/pwa-benchmark

To help you get started, we’ve selected a few @shopgate/pwa-benchmark 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 / libraries / common / store / index.js View on Github external
export function configureStore(reducers, subscribers) {
  // Starts benchmark controller BEFORE adding the middleware.
  if (appConfig.benchmark) {
    benchmarkController.startup();
  }

  const store = createStore(
    makeRootReducer(reducers),
    getInitialState(),
    composeWithDevTools(
      applyMiddleware(...[
        thunk,
        ...appConfig.benchmark ? [benchmarkMiddleware] : [],
        streams,
        logger,
      ]),
      persistState({
        key: storeKey,
        paths: persistedReducers.getAll(),
      })

@shopgate/pwa-benchmark

Benchmark suite for PWA

Apache-2.0
Latest version published 8 days ago

Package Health Score

63 / 100
Full package analysis

Popular @shopgate/pwa-benchmark functions