I have an Observable that I want to continue execution to:
1) the uploadActions.MARK_UPLOAD_AS_COMPLETE action uploadActions.MARK_UPLOAD_AS_COMPLETE called with a certain payload
OR
2) the uploadActions.UPLOAD_FAILURE action uploadActions.UPLOAD_FAILURE called with any payload
This is as far as I can get (and not working):
return Observable.interval(5000) .takeUntil( action$ .ofType( uploadActions.UPLOAD_FAILURE, uploadActions.MARK_UPLOAD_AS_COMPLETE ) .filter(a => {
Is there a clean way I could achieve this?
source share