Skip to content

Commit 6209ef6

Browse files
authored
Merge pull request #11875 from DestinyItemManager/vendors-refresh-listener
Fix vendors not reloading on app refresh
2 parents 1c208ac + ffc23ee commit 6209ef6

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

src/app/vendors/hooks.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,11 @@ export function useLoadVendors(
3030

3131
useEventBusListener(
3232
refresh$,
33-
useCallback(
34-
() => () => {
35-
if (storeId && active) {
36-
loadingTracker.addPromise(dispatch(loadAllVendors(account, storeId, true)));
37-
}
38-
},
39-
[account, active, dispatch, storeId],
40-
),
33+
useCallback(() => {
34+
if (storeId && active) {
35+
loadingTracker.addPromise(dispatch(loadAllVendors(account, storeId, true)));
36+
}
37+
}, [account, active, dispatch, storeId]),
4138
);
4239

4340
const fullyLoaded = useSelector((state: RootState) =>

0 commit comments

Comments
 (0)