Skip to content

Commit 7fde1ed

Browse files
committed
feat: no prefetch for Query by default
1 parent 433578d commit 7fde1ed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/smooth/src/content/Query.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export function Query({ children }) {
6464

6565
return (
6666
<BaseQuery
67+
prefetch
6768
query={getQuery(page)}
6869
variables={{ slug: page.slug || 'index' }}
6970
>

packages/smooth/src/query/Query.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function PrefetchHandler({ children, ...props }) {
3131
return children(props)
3232
}
3333

34-
export function Query({ children, prefetch = true, context, ...props }) {
34+
export function Query({ children, prefetch, context, ...props }) {
3535
const { lang, location } = usePageContext()
3636

3737
return (

0 commit comments

Comments
 (0)