You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In redux-observable there is an operator that is a higher order operator for the filter operator but it only can get an action type and doesn't work with action creators. In deox we should export an operator for this job that works correctly with both action type, action and action creator.
Possible Implementation
import{filter}from'rxjs/operators'constofType=<TCextendsActionCreator|AnyAction|string>(typeContainer: TC)=>{consttargetType=typeoftypeContainer==='string' ? typeContainer : getType(typeContainer)returnfilter(({ type })=>type===targetType)}
The text was updated successfully, but these errors were encountered:
In
redux-observable
there is an operator that is a higher order operator for the filter operator but it only can get an action type and doesn't work with action creators. In deox we should export an operator for this job that works correctly with bothaction type
,action
andaction creator
.Possible Implementation
The text was updated successfully, but these errors were encountered: