Skip to content

Commit f2295b9

Browse files
committed
Fix: remove throttle
1 parent 1c82ecf commit f2295b9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

https/front/sagas/post.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,15 +303,15 @@ function* watchLoadPost() {
303303
}
304304

305305
function* watchLoadHashtagPosts() {
306-
yield throttle(5000, LOAD_HASHTAG_POSTS_REQUEST, loadHashtagPosts);
306+
yield takeLatest(LOAD_HASHTAG_POSTS_REQUEST, loadHashtagPosts);
307307
}
308308

309309
function* watchLoadUserPosts() {
310-
yield throttle(5000, LOAD_USER_POSTS_REQUEST, loadUserPosts);
310+
yield takeLatest(LOAD_USER_POSTS_REQUEST, loadUserPosts);
311311
}
312312

313313
function* watchLoadPosts() {
314-
yield throttle(5000, LOAD_POSTS_REQUEST, loadPosts);
314+
yield takeLatest(LOAD_POSTS_REQUEST, loadPosts);
315315
}
316316

317317
function* watchAddPost() {

0 commit comments

Comments
 (0)