Skip to content

Commit

Permalink
Minor docs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
christianbaroni committed Dec 20, 2024
1 parent 61e97f4 commit fda20e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/state/internal/createQueryStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ export interface QueryStore<TData, TParams extends Record<string, unknown>, S ex
*/
getStatus: () => QueryStatusInfo;
/**
* Determines if the current data is expired, meaning it has exceeded the `cacheTime` duration.
* Determines if the current data is expired based on whether `cacheTime` has been exceeded.
* @param override - An optional override for the default cache time, in milliseconds.
* @returns `true` if the data is expired, otherwise `false`.
*/
isDataExpired: (override?: number) => boolean;
/**
* Determines if the current data is stale, meaning it has exceeded the `staleTime` duration.
* Determines if the current data is stale based on whether `staleTime` has been exceeded.
* Stale data may be refreshed automatically in the background.
* @param override - An optional override for the default stale time, in milliseconds.
* @returns `true` if the data is stale, otherwise `false`.
Expand Down

0 comments on commit fda20e2

Please sign in to comment.