Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
hotfix: takeLatest was registering after action already fired (#2266)
Browse files Browse the repository at this point in the history
  • Loading branch information
rickyrombo authored Nov 16, 2022
1 parent 64bbe4b commit 163a584
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/src/common/store/pages/saved/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ function* fetchTracksLineup() {
}

function* watchFetchSaves() {
yield waitForBackendAndAccount()
const apiClient = yield getContext('apiClient')
let currentQuery = ''
let currentSortMethod = ''
let currentSortDirection = ''

yield takeLatest(actions.FETCH_SAVES, function* (props) {
yield waitForBackendAndAccount()
const apiClient = yield getContext('apiClient')
const account = yield call(waitForValue, getAccountUser)
const userId = account.user_id
const offset = props.offset ?? 0
Expand Down

0 comments on commit 163a584

Please sign in to comment.