We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3847670 commit 31e408aCopy full SHA for 31e408a
examples/loading-plugin/src/index.js
@@ -1,5 +1,3 @@
1
-import { from } from 'rxjs';
2
-import { mergeMap } from 'rxjs/operators';
3
import loading from '@rxloop/loading';
4
import rxloop from '../../../src';
5
@@ -39,10 +37,10 @@ const counter = {
39
37
}),
40
38
);
41
},
42
- getData(action$, { map }) {
+ getData(action$, { call, map }) {
43
return action$.pipe(
44
- mergeMap(() => {
45
- return from( apiSlow() );
+ call(async () => {
+ return await apiSlow();
46
47
map((data) => {
48
return {
0 commit comments