@@ -620,24 +620,22 @@ const creatorHasPublicProjects = computed(
620620const {
621621 data: followedProjects ,
622622 refetch: refetchFollowedProjects ,
623- isFetching : followedProjectsIsFetching ,
623+ isLoading : followedProjectsIsLoading ,
624624} = useQuery ({
625625 queryKey: computed (() => [' user' , auth .value .user ? .id , ' follows' ]),
626626 queryFn: async () => fetchFollowedProjects (auth .value .user .id ),
627627 enabled: computed (() => isFollowingCollection .value && !! auth .value .user ? .id ),
628- placeholderData: [],
629628})
630629
631630// Query for collection projects
632631const {
633632 data: collectionProjects ,
634633 refetch: refetchCollectionProjects ,
635- isFetching : collectionProjectsIsFetching ,
634+ isLoading : collectionProjectsIsLoading ,
636635} = useQuery ({
637636 queryKey: computed (() => [' projects' , collection .value ? .projects ]),
638637 queryFn: () => fetchProjectsByIds (collection .value .projects ),
639638 enabled: computed (() => ! isFollowingCollection .value && !! collection .value ? .projects ? .length ),
640- placeholderData: [],
641639})
642640
643641// Unified projects ref
@@ -650,9 +648,9 @@ const isLoading = computed(() => {
650648 if (! import .meta.client) return false
651649
652650 if (isFollowingCollection .value ) {
653- return followedProjectsIsFetching .value
651+ return followedProjectsIsLoading .value
654652 }
655- return collectionIsPending .value || creatorIsPending .value || collectionProjectsIsFetching .value
653+ return collectionIsPending .value || creatorIsPending .value || collectionProjectsIsLoading .value
656654})
657655
658656onServerPrefetch (async () => {
0 commit comments