Skip to content

Commit f258bdd

Browse files
committed
chore: 修正注释
1 parent ba1907d commit f258bdd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/react-use/src/use-query

packages/react-use/src/use-query/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export function useQuery<T extends AnyFunc, D = Awaited<ReturnType<T>>, E = any>
310310

311311
useUpdateEffect(() => void refreshWithStatusCheck(), [...(options.refreshDependencies ?? [])])
312312

313-
// revalidate when cache becomes stale, but skip the first time when component is mounted
313+
// revalidate when cache becomes stale
314314
// install of `useUpdateEffect`: cover the case when cache is enabled and stale at the first time mount
315315
useEffect(() => {
316316
if (!cacheActions.isCacheEnabled || !cache.stale || latest.current.manual) return

0 commit comments

Comments
 (0)