Skip to content

Commit

Permalink
feat: rename suspend prop to suspended for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed Oct 5, 2020
1 parent 125abc9 commit 06eaecd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/villus/src/Query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const Query = defineComponent({
type: Boolean,
default: true,
},
suspend: {
suspended: {
type: Boolean,
default: false,
},
Expand Down Expand Up @@ -72,7 +72,7 @@ export const Query = defineComponent({
cachePolicy: props.cachePolicy as CachePolicy,
};

if (props.suspend) {
if (props.suspended) {
return useQuery(queryProps).then(createRenderFn);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/villus/test/query.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ test.skip('can be suspended', async () => {
<Provider v-bind="client">
<Suspense>
<template #default>
<Query query="{ posts { id title } }" v-slot="{ data }" suspend>
<Query query="{ posts { id title } }" v-slot="{ data }" suspended>
<ul>
<li v-for="post in data.posts" :key="post.id">{{ post.title }}</li>
</ul>
Expand Down

0 comments on commit 06eaecd

Please sign in to comment.