Processor cancelled vs finished; Re-run processor if incomplete during next render

This commit is contained in:
James Barnsley
2017-08-15 16:36:50 +12:00
parent 6f0088204b
commit f51e83099e
14 changed files with 156 additions and 106 deletions

View File

@ -130,9 +130,16 @@ const UIMiddleware = (function(){
next(action)
break
case 'CANCEL_PROCESS':
case 'PROCESS_CANCELLED':
store.dispatch({
type: action.key+'_CANCEL'
type: action.key+'_CANCELLED'
})
next(action)
break
case 'PROCESS_FINISHED':
store.dispatch({
type: action.key+'_FINISHED'
})
next(action)
break