@@ -500,13 +500,26 @@ export function useCommentLazyQuery(
500500 options ,
501501 ) ;
502502}
503+ export function useCommentSuspenseQuery (
504+ baseOptions ?: Apollo . SuspenseQueryHookOptions < CommentQueryMyOperation , CommentQueryVariables > ,
505+ ) : Apollo . UseSuspenseQueryResult < CommentQueryMyOperation , CommentQueryVariables > ;
506+ export function useCommentSuspenseQuery (
507+ baseOptions ?:
508+ | Apollo . SkipToken
509+ | Apollo . SuspenseQueryHookOptions < CommentQueryMyOperation , CommentQueryVariables > ,
510+ ) : Apollo . UseSuspenseQueryResult < CommentQueryMyOperation | undefined , CommentQueryVariables > ;
503511export function useCommentSuspenseQuery (
504512 baseOptions ?:
505513 | Apollo . SkipToken
506514 | Apollo . SuspenseQueryHookOptions < CommentQueryMyOperation , CommentQueryVariables > ,
507515) {
508- const options =
509- baseOptions === Apollo . skipToken ? baseOptions : { ...defaultOptions , ...baseOptions } ;
516+ if ( baseOptions === Apollo . skipToken ) {
517+ return Apollo . useSuspenseQuery < CommentQueryMyOperation , CommentQueryVariables > (
518+ CommentDocument ,
519+ baseOptions as Apollo . SkipToken | undefined ,
520+ ) ;
521+ }
522+ const options = { ...defaultOptions , ...baseOptions } ;
510523 return Apollo . useSuspenseQuery < CommentQueryMyOperation , CommentQueryVariables > (
511524 CommentDocument ,
512525 options ,
@@ -564,6 +577,26 @@ export function useCurrentUserForProfileLazyQuery(
564577 CurrentUserForProfileQueryVariables
565578 > ( CurrentUserForProfileDocument , options ) ;
566579}
580+ export function useCurrentUserForProfileSuspenseQuery (
581+ baseOptions ?: Apollo . SuspenseQueryHookOptions <
582+ CurrentUserForProfileQueryMyOperation ,
583+ CurrentUserForProfileQueryVariables
584+ > ,
585+ ) : Apollo . UseSuspenseQueryResult <
586+ CurrentUserForProfileQueryMyOperation ,
587+ CurrentUserForProfileQueryVariables
588+ > ;
589+ export function useCurrentUserForProfileSuspenseQuery (
590+ baseOptions ?:
591+ | Apollo . SkipToken
592+ | Apollo . SuspenseQueryHookOptions <
593+ CurrentUserForProfileQueryMyOperation ,
594+ CurrentUserForProfileQueryVariables
595+ > ,
596+ ) : Apollo . UseSuspenseQueryResult <
597+ CurrentUserForProfileQueryMyOperation | undefined ,
598+ CurrentUserForProfileQueryVariables
599+ > ;
567600export function useCurrentUserForProfileSuspenseQuery (
568601 baseOptions ?:
569602 | Apollo . SkipToken
@@ -572,8 +605,13 @@ export function useCurrentUserForProfileSuspenseQuery(
572605 CurrentUserForProfileQueryVariables
573606 > ,
574607) {
575- const options =
576- baseOptions === Apollo . skipToken ? baseOptions : { ...defaultOptions , ...baseOptions } ;
608+ if ( baseOptions === Apollo . skipToken ) {
609+ return Apollo . useSuspenseQuery <
610+ CurrentUserForProfileQueryMyOperation ,
611+ CurrentUserForProfileQueryVariables
612+ > ( CurrentUserForProfileDocument , baseOptions as Apollo . SkipToken | undefined ) ;
613+ }
614+ const options = { ...defaultOptions , ...baseOptions } ;
577615 return Apollo . useSuspenseQuery <
578616 CurrentUserForProfileQueryMyOperation ,
579617 CurrentUserForProfileQueryVariables
@@ -633,13 +671,26 @@ export function useFeedLazyQuery(
633671 const options = { ...defaultOptions , ...baseOptions } ;
634672 return Apollo . useLazyQuery < FeedQueryMyOperation , FeedQueryVariables > ( FeedDocument , options ) ;
635673}
674+ export function useFeedSuspenseQuery (
675+ baseOptions ?: Apollo . SuspenseQueryHookOptions < FeedQueryMyOperation , FeedQueryVariables > ,
676+ ) : Apollo . UseSuspenseQueryResult < FeedQueryMyOperation , FeedQueryVariables > ;
677+ export function useFeedSuspenseQuery (
678+ baseOptions ?:
679+ | Apollo . SkipToken
680+ | Apollo . SuspenseQueryHookOptions < FeedQueryMyOperation , FeedQueryVariables > ,
681+ ) : Apollo . UseSuspenseQueryResult < FeedQueryMyOperation | undefined , FeedQueryVariables > ;
636682export function useFeedSuspenseQuery (
637683 baseOptions ?:
638684 | Apollo . SkipToken
639685 | Apollo . SuspenseQueryHookOptions < FeedQueryMyOperation , FeedQueryVariables > ,
640686) {
641- const options =
642- baseOptions === Apollo . skipToken ? baseOptions : { ...defaultOptions , ...baseOptions } ;
687+ if ( baseOptions === Apollo . skipToken ) {
688+ return Apollo . useSuspenseQuery < FeedQueryMyOperation , FeedQueryVariables > (
689+ FeedDocument ,
690+ baseOptions as Apollo . SkipToken | undefined ,
691+ ) ;
692+ }
693+ const options = { ...defaultOptions , ...baseOptions } ;
643694 return Apollo . useSuspenseQuery < FeedQueryMyOperation , FeedQueryVariables > ( FeedDocument , options ) ;
644695}
645696export type FeedQueryHookResult = ReturnType < typeof useFeedQuery > ;
0 commit comments