@pinia/colada
Advanced tools
Comparing version 0.12.0 to 0.12.1
@@ -812,11 +812,17 @@ import * as vue from 'vue'; | ||
/** | ||
* The last successful data resolved by the query. | ||
* The last successful data resolved by the query. Alias for `state.value.data`. | ||
* | ||
* @see {@link state} | ||
*/ | ||
data: ShallowRef<TResult | undefined>; | ||
/** | ||
* The error rejected by the query. | ||
* The error rejected by the query. Alias for `state.value.error`. | ||
* | ||
* @see {@link state} | ||
*/ | ||
error: ShallowRef<TError | null>; | ||
/** | ||
* The status of the query. | ||
* The status of the query. Alias for `state.value.status`. | ||
* | ||
* @see {@link state} | ||
* @see {@link DataStateStatus} | ||
@@ -834,3 +840,3 @@ */ | ||
/** | ||
* Returns whether the request is currently fetching data. | ||
* Returns whether the request is currently fetching data. Alias for `asyncStatus.value === 'loading'` | ||
*/ | ||
@@ -837,0 +843,0 @@ isLoading: ShallowRef<boolean>; |
@@ -403,3 +403,3 @@ // src/use-mutation.ts | ||
get stale() { | ||
return Date.now() >= this.when + this.options.staleTime; | ||
return !this.when || Date.now() >= this.when + this.options.staleTime; | ||
}, | ||
@@ -708,3 +708,3 @@ get active() { | ||
get stale() { | ||
return Date.now() >= this.when + this.options.staleTime; | ||
return !this.when || Date.now() >= this.when + this.options.staleTime; | ||
}, | ||
@@ -711,0 +711,0 @@ get active() { |
{ | ||
"name": "@pinia/colada", | ||
"type": "module", | ||
"version": "0.12.0", | ||
"version": "0.12.1", | ||
"description": "The smart data fetching layer for Pinia", | ||
@@ -113,3 +113,3 @@ "publishConfig": { | ||
"vue": "^3.5.12", | ||
"@pinia/colada": "0.12.0" | ||
"@pinia/colada": "0.12.1" | ||
}, | ||
@@ -116,0 +116,0 @@ "simple-git-hooks": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
360093
2944