Skip to content

Commit 9db4d34

Browse files
committed
fix: use-request image pull
1 parent 7a4d699 commit 9db4d34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/use-request/src/plugins/useAutoRunPlugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const useAutoRunPlugin: UseRequestPlugin<unknown, unknown[]> = (
99
const hasAutoRun = ref(false)
1010

1111
watchEffect(() => {
12-
if (!manual) hasAutoRun.value = unref(ready)
12+
if (!manual && fetchInstance.options.refreshDeps !== true) hasAutoRun.value = unref(ready)
1313
})
1414

1515
if (refreshDeps instanceof Array)
@@ -52,7 +52,7 @@ const useAutoRunPlugin: UseRequestPlugin<unknown, unknown[]> = (
5252
}
5353
}
5454

55-
useAutoRunPlugin.onInit = ({ initialData, ready = true, manual }) => {
55+
useAutoRunPlugin.onInit = ({ ready = true, manual }) => {
5656
return {
5757
loading: (!manual && unref(ready)) as UseRequestFetchState<any, any[]>['loading'],
5858
}

0 commit comments

Comments
 (0)