diff --git a/src/useList/index.ts b/src/useList/index.ts index 3b923899e..59912cc72 100644 --- a/src/useList/index.ts +++ b/src/useList/index.ts @@ -75,6 +75,7 @@ export default function useList, P extends Record< setLoading(true); fetcher(raw) .then(({ data, total }) => { + if (lastRequestId.current !== requestId) return; setData(data); setTotal(total); })