Skip to content

Commit 9763104

Browse files
committed
Use queryWhen inside useGet
1 parent 6d584d4 commit 9763104

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useGet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function get(options: UseGetOptions): UseGetData {
8787
const idToUse = isRef(id) ? id.value : id
8888
const paramsToUse = isRef(params) ? params.value : params
8989

90-
if (idToUse != null && !state.isLocal) {
90+
if (idToUse != null && queryWhen.value && !state.isLocal) {
9191
state.isPending = true
9292
state.hasBeenRequested = true
9393

0 commit comments

Comments
 (0)