Skip to content

Commit cf1bc2b

Browse files
committed
feat: prevent levels from being refetched very often
1 parent a08d219 commit cf1bc2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/apis/arknights.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ export const useLevels = ({ suspense }: { suspense?: boolean } = {}) => {
3131

3232
const response = useSWR<LevelResponse>(url, {
3333
focusThrottleInterval: ONE_DAY,
34+
dedupingInterval: ONE_DAY,
3435
suspense,
3536
fetcher: async (input: string, init?: RequestInit) => {
3637
let res: LevelResponse

0 commit comments

Comments
 (0)