Skip to content

Commit 722e8fb

Browse files
committed
fix test
1 parent 8fbc8ad commit 722e8fb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/plugins/tanstack-query/tests/plugin.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,17 +303,15 @@ ${sharedModel}
303303
})
304304
export class TestComponent {
305305
query() {
306-
const { data, queryKey } = useFindFirstpost_Item({include: { author: true }}, { enabled: true, optimisticUpdate: false });
307-
console.log(queryKey);
306+
const { data } = useFindFirstpost_Item({include: { author: true }}, { enabled: true, optimisticUpdate: false });
308307
console.log(data()?.viewCount);
309308
console.log(data()?.author?.email);
310309
}
311310
312311
infiniteQuery() {
313-
const { data, queryKey, fetchNextPage, hasNextPage } = useInfiniteFindManypost_Item();
312+
const { data, fetchNextPage, hasNextPage } = useInfiniteFindManypost_Item();
314313
useInfiniteFindManypost_Item({ where: { published: true } });
315314
useInfiniteFindManypost_Item(undefined, { enabled: true, getNextPageParam: () => null });
316-
console.log(queryKey);
317315
console.log(data()?.pages[0][0].published);
318316
console.log(data()?.pageParams[0]);
319317
}

0 commit comments

Comments
 (0)