(options)
| 355 | } |
| 356 | |
| 357 | const compose = (options) => (...funcs) => (...args) => { |
| 358 | const instanceId = generateId(options.instanceId) |
| 359 | return [preEnhancer(instanceId), ...funcs].reduceRight( |
| 360 | (composed, f) => f(composed), |
| 361 | devToolsEnhancer({ ...options, instanceId })(...args), |
| 362 | ) |
| 363 | } |
| 364 | |
| 365 | export function composeWithDevTools(...funcs) { |
| 366 | if (funcs.length === 0) { |
no test coverage detected