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 8203e84 commit 3b76454Copy full SHA for 3b76454
2 files changed
examples/12_async/src/store.ts
@@ -90,6 +90,7 @@ const asyncActionHandlers: AsyncActionHandlers<
90
const response = await fetch(
91
'data:application/json;base64,eyJkYXRhIjp7ImZpcnN0X25hbWUiOiJFbW1hIn19',
92
);
93
+ await sleep(500);
94
dispatch({ type: 'CONTINUE_FETCH_USER' });
95
const data = await response.json();
96
await sleep(500);
examples/13_saga/src/store.ts
@@ -86,6 +86,7 @@ function* userFetcher(_action: AsyncActionFetch) {
86
87
),
88
89
+ yield delay(500);
yield put<InnerAction>({ type: 'CONTINUE_FETCH_USER' });
const data: { data: Record<string, unknown> } = yield call(() =>
response.json(),
0 commit comments