Skip to content

Commit ba7be9d

Browse files
committed
fix bug where haveLoaded is always false for local
This fixes the `useFind` Vue Composition API utility. The `haveLoaded` property will now always be set to `true` when `local: true` is enabled in the options. This will allow UIs controlling local pagination to be coded the same as non-local ones.
1 parent f8295a2 commit ba7be9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/useFind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function find(options: UseFindOptions): UseFindData {
8686
qid,
8787
isPending: false,
8888
haveBeenRequested: false,
89-
haveLoaded: false,
89+
haveLoaded: local,
9090
error: null,
9191
debounceTime: null,
9292
latestQuery: null,

0 commit comments

Comments
 (0)