Add some dummy epic code
This commit is contained in:
@@ -51,6 +51,29 @@ setTimeout(() => workloadService.checkStatus({ id: 2 })
|
|||||||
.then(console.log.bind(console, 'checkStatus 2')), 200);
|
.then(console.log.bind(console, 'checkStatus 2')), 200);
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
// pretend epic code
|
||||||
|
|
||||||
|
function createWorkload(action$) {
|
||||||
|
action$
|
||||||
|
.pipe(
|
||||||
|
ofType('WORKLOAD_SUBMIT'),
|
||||||
|
tap((action) => {
|
||||||
|
console.log(`workload has been submitted with complexity of ${action.payload.complexity}`)
|
||||||
|
}),
|
||||||
|
switchMap((action) => (
|
||||||
|
fromPromise(workloadService.create({ complexity: action.payload.complexity }))
|
||||||
|
)),
|
||||||
|
map((response) => (
|
||||||
|
WorkloadActions.created(response))
|
||||||
|
))
|
||||||
|
);
|
||||||
|
|
||||||
|
return empty();
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
(
|
(
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
|
|||||||
Reference in New Issue
Block a user