The compose merge function is executed sequentially - source redux

 

1 function compose(...funcs) {
2   if (funcs.length === 0) {
3     return arg => arg
4   }
5   if (funcs.length === 1) {
6     return funcs[0]
7   }
8   return funcs.reduce((a, b) => (...args) => a(b(...args)))
9 }

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324734815&siteId=291194637