diff --git a/apps/demo/src/app/pages/article/article.page.tsx b/apps/demo/src/app/pages/article/article.page.tsx index a2daee047..ef9d07417 100644 --- a/apps/demo/src/app/pages/article/article.page.tsx +++ b/apps/demo/src/app/pages/article/article.page.tsx @@ -19,7 +19,7 @@ const articleQuery = (slug: string) => ({ export const loader = (queryClient: QueryClient) => - async (slug: string): Promise<{ data: Article }> => { + async (slug: string): Promise
=> { const query = articleQuery(slug); return await queryClient.ensureQueryData(query); @@ -31,7 +31,7 @@ export default function ArticlePage() { const { data: article } = useQuery
({ ...articleQuery(slug), - initialData: initialData.data, + initialData: initialData, }); return ( diff --git a/apps/demo/src/app/pages/profile/profile.page.tsx b/apps/demo/src/app/pages/profile/profile.page.tsx index 19e2a182e..d2ef31d28 100644 --- a/apps/demo/src/app/pages/profile/profile.page.tsx +++ b/apps/demo/src/app/pages/profile/profile.page.tsx @@ -30,7 +30,7 @@ const profileQuery = (username: string) => ({ export const loader = (queryClient: QueryClient) => - async (username: string): Promise<{ data: Author }> => { + async (username: string): Promise => { const query = profileQuery(username); return await queryClient.ensureQueryData(query); @@ -43,7 +43,7 @@ export default function ProfilePage({ defaultTab }: Props) { const navigate = useNavigate(); const { data: profile } = useQuery({ ...profileQuery(username), - initialData: initialData.data, + initialData: initialData, }); const [page, setPage] = useState(1);