@@ -48,49 +48,68 @@ type ExpectedReturnType<
48
48
// $FlowFixMe[prop-missing]
49
49
// $FlowFixMe[incompatible-cast]
50
50
// $FlowFixMe[incompatible-exact]
51
+ // $FlowFixMe[react-rule-hook]
51
52
( useBlockingPaginationFragment (
52
53
refetchableFragmentInput ,
53
54
keyNonNullable ,
54
55
) : ExpectedReturnType < QueryVariablesSubset , QueryVariables , NonNullableData > ) ;
55
56
57
+ // $FlowFixMe[react-rule-hook]
56
58
( useBlockingPaginationFragment (
57
59
refetchableFragmentInput ,
58
60
keyNullable ,
59
61
) : ExpectedReturnType < QueryVariables , QueryVariables , NullableData > ) ;
60
62
61
63
// $FlowExpectedError: can't cast nullable to non-nullable
64
+ // $FlowFixMe[react-rule-hook]
65
+ // $FlowFixMe[incompatible-cast]
62
66
( useBlockingPaginationFragment (
63
67
refetchableFragmentInput ,
64
68
keyNullable ,
65
69
) : ExpectedReturnType < QueryVariables , QueryVariables , NonNullableData > ) ;
66
70
67
71
// $FlowExpectedError: actual type of returned data is correct
72
+ // $FlowFixMe[react-rule-hook]
73
+ // $FlowFixMe[incompatible-exact]
74
+ // $FlowFixMe[prop-missing]
75
+ // $FlowFixMe[incompatible-cast]
68
76
( useBlockingPaginationFragment (
69
77
refetchableFragmentInput ,
70
78
// $FlowExpectedError[incompatible-call]
71
79
keyAnotherNonNullable ,
72
80
) : ExpectedReturnType < QueryVariables , QueryVariablesSubset , NonNullableData > ) ;
73
81
74
82
// $FlowExpectedError[incompatible-call] `Example_user$fragmentType` is incompatible with `FragmentType`
83
+ // $FlowFixMe[react-rule-hook]
75
84
( useBlockingPaginationFragment (
76
85
refetchableFragmentInput ,
77
86
// $FlowExpectedError[incompatible-call]
78
87
keyAnotherNullable ,
79
88
) : ExpectedReturnType < QueryVariables , QueryVariables , NullableData > ) ;
80
89
81
90
// $FlowExpectedError: Key should not be a user provided object
91
+ // $FlowFixMe[react-rule-hook]
92
+ // $FlowFixMe[prop-missing]
93
+ // $FlowFixMe[cannot-resolve-name]
82
94
useBlockingPaginationFragment ( fragmentInput , { abc : 123 } ) ;
83
95
84
96
// $FlowExpectedError: Key should not be an empty object
97
+ // $FlowFixMe[react-rule-hook]
98
+ // $FlowFixMe[prop-missing]
99
+ // $FlowFixMe[cannot-resolve-name]
85
100
useBlockingPaginationFragment ( fragmentInput , { } ) ;
86
101
87
102
// $FlowExpectedError: Key should be the `<name>$key` type from generated flow
103
+ // $FlowFixMe[react-rule-hook]
104
+ // $FlowFixMe[prop-missing]
105
+ // $FlowFixMe[cannot-resolve-name]
88
106
useBlockingPaginationFragment ( fragmentInput , fragmentData ) ;
89
107
90
108
// Refetch function options:
91
109
declare var variables: QueryVariables ;
92
110
declare var environment: IEnvironment ;
93
111
112
+ // $FlowFixMe[react-rule-hook]
94
113
const { refetch} = useBlockingPaginationFragment (
95
114
refetchableFragmentInput ,
96
115
keyNonNullable ,
@@ -109,6 +128,7 @@ refetch(variables, {
109
128
declare var extraVariables: { nickname : string } ;
110
129
declare var invalidVariables: { foo : string } ;
111
130
131
+ // $FlowFixMe[react-rule-hook]
112
132
const { loadNext} = useBlockingPaginationFragment (
113
133
refetchableFragmentInput ,
114
134
keyNonNullable ,
0 commit comments