How to use the redux-bundler.composeBundles function in redux-bundler

To help you get started, we’ve selected a few redux-bundler 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 ipfs-shipyard / ipfs-webui / src / bundles / index.js View on Github external
import filesBundle from './files'
import configBundle from './config'
import configSaveBundle from './config-save'
import navbarBundle from './navbar'
import toursBundle from './tours'
import notifyBundle from './notify'
import connectedBundle from './connected'
import retryInitBundle from './retry-init'
import identityBundle from './identity'
import bundleCache from '../lib/bundle-cache'
import ipfsDesktop from './ipfs-desktop'
import repoStats from './repo-stats'
import createAnalyticsBundle from './analytics'
import experimentsBundle from './experiments'

export default composeBundles(
  createCacheBundle({
    cacheFn: bundleCache.set
  }),
  appIdle({ idleTimeout: 5000 }),
  ipfsBundle({
    tryWindow: false,
    ipfsConnectionTest: async (ipfs) => {
      // ipfs connection is working if can we fetch the bw stats.
      // See: https://github.com/ipfs-shipyard/ipfs-webui/issues/835#issuecomment-466966884
      try {
        await ipfs.stats.bw()
      } catch (err) {
        if (!/bandwidth reporter disabled in config/.test(err)) {
          throw err
        }
      }
github HenrikJoreteg / redux-bundler-example / src / bundles / index.js View on Github external
import { composeBundles, createCacheBundle } from 'redux-bundler'
import routes from './routes'
import baseData from './base-data'
import people from './people'
import extraArgs from './extra-args'
import cache from '../utils/cache'

export default composeBundles(
  routes,
  baseData,
  people,
  createCacheBundle(cache.set),
  extraArgs
)
github ipfs-shipyard / ipfs-desktop / src / lib / menubar / app / bundles / index.js View on Github external
import { composeBundles } from 'redux-bundler'
import electron from './electron'
import ipfs from './ipfs'

export default composeBundles(
  electron,
  ipfs
)
github ipfs-shipyard / ipfs-share-files / src / bundles / index.js View on Github external
import { composeBundles } from 'redux-bundler'
import ipfsBundle from 'ipfs-redux-bundle'
import appIdle from './app-idle'
import routesBundle from './routes'
import redirectsBundle from './redirects'
import filesBundle from './files'

export default composeBundles(
  appIdle({idleTimeout: 5000}),
  ipfsBundle({
    tryJsIpfs: true,
    getJsIpfs: () => import('ipfs')
  }),
  routesBundle,
  redirectsBundle,
  filesBundle
)
github dwarvesf / template-react-app / template / src / bundles / index.js View on Github external
import { composeBundles, createUrlBundle, createCacheBundle } from 'redux-bundler';

import routes from './routes';
import extraArgs from './extra-args';
import cache from '@/utils/cache';

export default composeBundles(
  createUrlBundle(),
  routes,
  createCacheBundle(cache.set),
  extraArgs,
);
github blockstack-radiks / banter / bundles / index.js View on Github external
import { composeBundles, createCacheBundle } from 'redux-bundler';
import visibility from './visibility';
import user from './user';
import messages from './messages';

export default composeBundles(visibility, user, messages);
github HenrikJoreteg / redux-bundler-worker-example / src / bundles / index.js View on Github external
import { composeBundles, createCacheBundle } from 'redux-bundler'
import routes from './routes'
import baseData from './base-data'
import people from './people'
import viewport from './viewport'
import extraArgs from './extra-args'
import cache from '../utils/cache'

export default composeBundles(
  routes,
  baseData,
  people,
  viewport,
  createCacheBundle(cache.set),
  extraArgs
)