How to use @redhat-cloud-services/frontend-components-utilities - 1 common examples

To help you get started, we’ve selected a few @redhat-cloud-services/frontend-components-utilities 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 ansible / ansible-hub-ui / src / store / index.js View on Github external
export function init(...middleware) {
    if (registry) {
        throw new Error('store already initialized');
    }

    registry = new ReducerRegistry({}, [promiseMiddleware(), ...middleware]);

    //If you want to register all of your reducers, this is good place.
    /*
     *  registry.register({
     *    someName: (state, action) => ({...state})
     *  });
     */
    return registry;
}

@redhat-cloud-services/frontend-components-utilities

Util functions for RedHat Cloud Services project.

Apache-2.0
Latest version published 1 month ago

Package Health Score

73 / 100
Full package analysis

Popular @redhat-cloud-services/frontend-components-utilities functions

Similar packages