How to use the redux-loop.getCmd function in redux-loop

To help you get started, we’ve selected a few redux-loop 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 ioof-holdings / redux-subspace / packages / redux-subspace-loop / src / namespaced.js View on Github external
return namespacer((state, action) => {
            const result = reducer(state, action)
            if (isLoop(result)) {
                const model = getModel(result)
                const cmd = getCmd(result)

                return loop(model, commandNamespacer(cmd))
            }
            return result
        })
    }