added artist filters

This commit is contained in:
austinried
2021-08-22 13:24:12 +09:00
parent 43d8cc7fa7
commit 22b6524e8c
5 changed files with 89 additions and 22 deletions

View File

@@ -14,14 +14,18 @@ export const useFetchList = <T>(fetchList: () => Promise<T[]>) => {
})
}, [fetchList])
const reset = useCallback(() => {
setList([])
refresh()
}, [refresh])
useActiveServerRefresh(
useCallback(() => {
setList([])
refresh()
}, [refresh]),
reset()
}, [reset]),
)
return { list, refreshing, refresh }
return { list, refreshing, refresh, reset }
}
export const useFetchPaginatedList = <T>(