MCPcopy Create free account
hub / github.com/jhen0409/react-native-debugger / compose

Function compose

app/worker/reduxAPI.js:357–363  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

355}
356
357const 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
365export function composeWithDevTools(...funcs) {
366 if (funcs.length === 0) {

Callers 1

composeWithDevToolsFunction · 0.85

Calls 2

preEnhancerFunction · 0.85
devToolsEnhancerFunction · 0.85

Tested by

no test coverage detected