Skip to content

Commit

Permalink
bugfix : staleTime bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Happhee committed Jul 21, 2024
1 parent f90f43c commit 16c6c03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/article/components/ArticleTitle/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ export default function ArticleTitle() {
{
...getArticleQueryOptions({ articleId }),
enabled: !workbookId,
staleTime: Infinity,
},
{
...getArticleWithWorkbookQueryOptions({
workbookId,
articleId,
}),
enabled: Boolean(workbookId),
staleTime: Infinity,
},
],
});
Expand Down
2 changes: 2 additions & 0 deletions src/article/components/EmailContentTemplate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ export default function EmailContentTemplate() {
{
...getArticleQueryOptions({ articleId }),
enabled: !workbookId,
staleTime: Infinity,
},
{
...getArticleWithWorkbookQueryOptions({
workbookId,
articleId,
}),
enabled: Boolean(workbookId),
staleTime: Infinity,
},
],
});
Expand Down

0 comments on commit 16c6c03

Please sign in to comment.