Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
})
}