Closed jefferybai closed 4 years ago
今天刚好看到这,在redux_component->enhancer.dart文件中;
Effect<K> effectEnhance<K>( Effect<K> effect, AbstractLogic<K> logic, Store<T> store, ) => _effectEnhancer?.call(logic, store)?.call(_inverterEffect<K>(effect)) ?? effect;
pageAnalyticsMiddleware在这里被调用的;
logic可以理解成发起此次effect的持有者,可能是page,可能是component
请问effectMiddleware第一个函数的形参AbstractLogic logic,代表什么?