react-relay 12.0.0 → 13.0.0-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactRelayContext.js +1 -1
- package/ReactRelayContext.js.flow +2 -3
- package/ReactRelayFragmentContainer.js.flow +10 -16
- package/ReactRelayFragmentMockRenderer.js.flow +1 -1
- package/ReactRelayLocalQueryRenderer.js.flow +6 -7
- package/ReactRelayPaginationContainer.js.flow +29 -39
- package/ReactRelayQueryFetcher.js.flow +9 -10
- package/ReactRelayQueryRenderer.js.flow +15 -15
- package/ReactRelayRefetchContainer.js.flow +24 -32
- package/ReactRelayTestMocker.js.flow +16 -14
- package/ReactRelayTypes.js.flow +10 -10
- package/RelayContext.js.flow +3 -3
- package/__flowtests__/ReactRelayFragmentContainer-flowtest.js.flow +1 -2
- package/__flowtests__/ReactRelayPaginationContainer-flowtest.js.flow +1 -2
- package/__flowtests__/ReactRelayRefetchContainer-flowtest.js.flow +1 -2
- package/__flowtests__/RelayModern-flowtest.js.flow +78 -46
- package/__flowtests__/RelayModernFlowtest_badref.graphql.js.flow +5 -4
- package/__flowtests__/RelayModernFlowtest_notref.graphql.js.flow +5 -4
- package/__flowtests__/RelayModernFlowtest_user.graphql.js.flow +4 -3
- package/__flowtests__/RelayModernFlowtest_users.graphql.js.flow +4 -3
- package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer.graphql.js.flow +13 -10
- package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer2.graphql.js.flow +13 -10
- package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow +13 -8
- package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow +13 -10
- package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtestQuery.graphql.js.flow +13 -8
- package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtest_viewer.graphql.js.flow +13 -10
- package/__flowtests__/__generated__/RelayModernFlowtest_badref.graphql.js.flow +15 -12
- package/__flowtests__/__generated__/RelayModernFlowtest_notref.graphql.js.flow +15 -12
- package/__flowtests__/__generated__/RelayModernFlowtest_user.graphql.js.flow +13 -10
- package/__flowtests__/__generated__/RelayModernFlowtest_users.graphql.js.flow +13 -10
- package/assertFragmentMap.js.flow +2 -2
- package/buildReactRelayContainer.js.flow +11 -10
- package/getRootVariablesForFragments.js.flow +2 -4
- package/hooks.js +1 -1
- package/hooks.js.flow +3 -5
- package/index.js +1 -1
- package/index.js.flow +4 -6
- package/jest-react/enqueueTask.js.flow +1 -1
- package/jest-react/internalAct.js.flow +1 -2
- package/legacy.js +1 -1
- package/lib/ReactRelayFragmentContainer.js +4 -4
- package/lib/ReactRelayFragmentMockRenderer.js +2 -2
- package/lib/ReactRelayLocalQueryRenderer.js +7 -8
- package/lib/ReactRelayPaginationContainer.js +18 -22
- package/lib/ReactRelayQueryFetcher.js +2 -2
- package/lib/ReactRelayQueryRenderer.js +4 -4
- package/lib/ReactRelayRefetchContainer.js +12 -14
- package/lib/ReactRelayTestMocker.js +7 -8
- package/lib/RelayContext.js +3 -2
- package/lib/assertFragmentMap.js +2 -1
- package/lib/buildReactRelayContainer.js +7 -7
- package/lib/getRootVariablesForFragments.js +1 -2
- package/lib/hooks.js +5 -5
- package/lib/index.js +7 -7
- package/lib/jest-react/internalAct.js +2 -2
- package/lib/multi-actor/ActorChange.js +2 -2
- package/lib/multi-actor/useRelayActorEnvironment.js +2 -2
- package/lib/relay-hooks/EntryPointContainer.react.js +3 -3
- package/lib/relay-hooks/FragmentResource.js +241 -45
- package/lib/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js +4 -4
- package/lib/relay-hooks/MatchContainer.js +1 -1
- package/lib/relay-hooks/QueryResource.js +83 -4
- package/lib/relay-hooks/SuspenseResource.js +130 -0
- package/lib/relay-hooks/loadQuery.js +8 -9
- package/lib/relay-hooks/preloadQuery_DEPRECATED.js +24 -10
- package/lib/relay-hooks/useBlockingPaginationFragment.js +2 -2
- package/lib/relay-hooks/useEntryPointLoader.js +2 -2
- package/lib/relay-hooks/useFetchTrackingRef.js +2 -1
- package/lib/relay-hooks/useFragment.js +8 -7
- package/lib/relay-hooks/useFragmentNode.js +4 -4
- package/lib/relay-hooks/useIsOperationNodeActive.js +2 -2
- package/lib/relay-hooks/useLazyLoadQuery.js +3 -3
- package/lib/relay-hooks/useLazyLoadQueryNode.js +4 -4
- package/lib/relay-hooks/useLoadMoreFunction.js +7 -9
- package/lib/relay-hooks/useMemoOperationDescriptor.js +2 -2
- package/lib/relay-hooks/useMemoVariables.js +2 -2
- package/lib/relay-hooks/useMutation.js +17 -6
- package/lib/relay-hooks/usePreloadedQuery.js +5 -5
- package/lib/relay-hooks/useQueryLoader.js +4 -4
- package/lib/relay-hooks/useRefetchableFragmentNode.js +10 -12
- package/lib/relay-hooks/useRelayEnvironment.js +2 -2
- package/lib/relay-hooks/useStaticFragmentNodeWarning.js +2 -2
- package/lib/relay-hooks/useSubscribeToInvalidationState.js +2 -1
- package/multi-actor/ActorChange.js.flow +3 -4
- package/multi-actor/useRelayActorEnvironment.js.flow +5 -7
- package/package.json +2 -2
- package/react-relay-hooks.js +2 -2
- package/react-relay-hooks.min.js +2 -2
- package/react-relay-legacy.js +2 -2
- package/react-relay-legacy.min.js +2 -2
- package/react-relay.js +2 -2
- package/react-relay.min.js +2 -2
- package/relay-hooks/EntryPointContainer.react.js.flow +8 -15
- package/relay-hooks/EntryPointTypes.flow.js.flow +18 -24
- package/relay-hooks/FragmentResource.js.flow +220 -34
- package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +32 -46
- package/relay-hooks/MatchContainer.js.flow +3 -2
- package/relay-hooks/QueryResource.js.flow +119 -17
- package/relay-hooks/RelayEnvironmentProvider.js.flow +9 -9
- package/relay-hooks/SuspenseResource.js.flow +115 -0
- package/relay-hooks/__flowtests__/EntryPointTypes/EntryPointElementConfig-flowtest.js.flow +4 -3
- package/relay-hooks/__flowtests__/EntryPointTypes/NestedEntrypoints-flowtest.js.flow +1 -1
- package/relay-hooks/__flowtests__/useBlockingPaginationFragment-flowtest.js.flow +10 -9
- package/relay-hooks/__flowtests__/useFragment-flowtest.js.flow +8 -7
- package/relay-hooks/__flowtests__/usePaginationFragment-flowtest.js.flow +10 -9
- package/relay-hooks/__flowtests__/useRefetchableFragment-flowtest.js.flow +10 -9
- package/relay-hooks/__flowtests__/utils.js.flow +8 -12
- package/relay-hooks/loadEntryPoint.js.flow +6 -12
- package/relay-hooks/loadQuery.js.flow +22 -23
- package/relay-hooks/preloadQuery_DEPRECATED.js.flow +29 -13
- package/relay-hooks/prepareEntryPoint_DEPRECATED.js.flow +6 -12
- package/relay-hooks/useBlockingPaginationFragment.js.flow +12 -13
- package/relay-hooks/useEntryPointLoader.js.flow +7 -10
- package/relay-hooks/useFetchTrackingRef.js.flow +2 -2
- package/relay-hooks/useFragment.js.flow +26 -46
- package/relay-hooks/useFragmentNode.js.flow +5 -7
- package/relay-hooks/useIsOperationNodeActive.js.flow +3 -5
- package/relay-hooks/useIsParentQueryActive.js.flow +3 -4
- package/relay-hooks/useLazyLoadQuery.js.flow +9 -10
- package/relay-hooks/useLazyLoadQueryNode.js.flow +11 -13
- package/relay-hooks/useLoadMoreFunction.js.flow +19 -27
- package/relay-hooks/useMemoOperationDescriptor.js.flow +5 -7
- package/relay-hooks/useMemoVariables.js.flow +6 -6
- package/relay-hooks/useMutation.js.flow +26 -26
- package/relay-hooks/usePaginationFragment.js.flow +37 -46
- package/relay-hooks/usePreloadedQuery.js.flow +13 -19
- package/relay-hooks/useQueryLoader.js.flow +13 -16
- package/relay-hooks/useRefetchableFragment.js.flow +7 -8
- package/relay-hooks/useRefetchableFragmentNode.js.flow +22 -30
- package/relay-hooks/useRelayEnvironment.js.flow +2 -4
- package/relay-hooks/useStaticFragmentNodeWarning.js.flow +2 -3
- package/relay-hooks/useSubscribeToInvalidationState.js.flow +3 -6
- package/relay-hooks/useSubscription.js.flow +6 -7
@@ -12,15 +12,6 @@
|
|
12
12
|
|
13
13
|
'use strict';
|
14
14
|
|
15
|
-
const React = require('react');
|
16
|
-
|
17
|
-
declare function nullthrows<T>(x: ?T): T;
|
18
|
-
|
19
|
-
const {
|
20
|
-
createContainer: createFragmentContainer,
|
21
|
-
} = require('../ReactRelayFragmentContainer');
|
22
|
-
const {graphql} = require('relay-runtime');
|
23
|
-
|
24
15
|
import type {$FragmentRef} from '../ReactRelayTypes';
|
25
16
|
import type {RelayModernFlowtest_badref} from './RelayModernFlowtest_badref.graphql';
|
26
17
|
import type {RelayModernFlowtest_notref} from './RelayModernFlowtest_notref.graphql';
|
@@ -33,6 +24,14 @@ import type {
|
|
33
24
|
RelayModernFlowtest_users$ref,
|
34
25
|
} from './RelayModernFlowtest_users.graphql';
|
35
26
|
|
27
|
+
const {
|
28
|
+
createContainer: createFragmentContainer,
|
29
|
+
} = require('../ReactRelayFragmentContainer');
|
30
|
+
const React = require('react');
|
31
|
+
const {graphql} = require('relay-runtime');
|
32
|
+
|
33
|
+
declare function nullthrows<T>(x: ?T): T;
|
34
|
+
|
36
35
|
class NotReferencedTest_ extends React.Component<{
|
37
36
|
notref: RelayModernFlowtest_notref,
|
38
37
|
...
|
@@ -97,7 +96,7 @@ class SingularTest extends React.Component<{
|
|
97
96
|
return null;
|
98
97
|
}
|
99
98
|
}
|
100
|
-
|
99
|
+
const SingularTestFragment = createFragmentContainer(SingularTest, {
|
101
100
|
user: graphql`
|
102
101
|
fragment RelayModernFlowtest_user on User {
|
103
102
|
name
|
@@ -120,7 +119,7 @@ class PluralTest extends React.Component<{
|
|
120
119
|
return null;
|
121
120
|
}
|
122
121
|
}
|
123
|
-
|
122
|
+
const PluralTestFragment = createFragmentContainer(PluralTest, {
|
124
123
|
users: graphql`
|
125
124
|
fragment RelayModernFlowtest_users on User @relay(plural: true) {
|
126
125
|
name
|
@@ -129,46 +128,71 @@ PluralTest = createFragmentContainer(PluralTest, {
|
|
129
128
|
});
|
130
129
|
|
131
130
|
declare var aUserRef: {
|
132
|
-
+$
|
131
|
+
+$fragmentSpreads: RelayModernFlowtest_user$ref,
|
133
132
|
...
|
134
133
|
};
|
135
134
|
|
136
135
|
declare var oneOfUsersRef: {
|
137
|
-
+$
|
136
|
+
+$fragmentSpreads: RelayModernFlowtest_users$ref,
|
138
137
|
...
|
139
138
|
};
|
140
139
|
|
141
140
|
declare var usersRef: $ReadOnlyArray<{
|
142
|
-
+$
|
141
|
+
+$fragmentSpreads: RelayModernFlowtest_users$ref,
|
143
142
|
...
|
144
143
|
}>;
|
145
144
|
|
146
145
|
declare var nonUserRef: {
|
147
|
-
+$
|
146
|
+
+$fragmentSpreads: {thing: true, ...},
|
148
147
|
...
|
149
148
|
};
|
150
149
|
|
151
150
|
function cb(): void {}
|
152
151
|
|
153
|
-
|
154
|
-
|
152
|
+
<SingularTestFragment
|
153
|
+
onClick={cb}
|
154
|
+
string="x"
|
155
|
+
// $FlowExpectedError - can't pass null for user
|
156
|
+
user={null}
|
157
|
+
nullableUser={null}
|
158
|
+
/>;
|
155
159
|
// $FlowExpectedError - user is required
|
156
|
-
<
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
<
|
165
|
-
|
160
|
+
<SingularTestFragment onClick={cb} string="x" nullableUser={null} />;
|
161
|
+
<SingularTestFragment
|
162
|
+
onClick={cb}
|
163
|
+
string="x"
|
164
|
+
// $FlowExpectedError - can't pass non-user ref for user
|
165
|
+
user={nonUserRef}
|
166
|
+
nullableUser={null}
|
167
|
+
/>;
|
168
|
+
<SingularTestFragment
|
169
|
+
// $FlowExpectedError - `cb` prop is not a function
|
170
|
+
onClick="cb"
|
171
|
+
string="x"
|
172
|
+
user={aUserRef}
|
173
|
+
nullableUser={null}
|
174
|
+
/>;
|
175
|
+
<SingularTestFragment
|
176
|
+
onClick={cb}
|
177
|
+
// $FlowExpectedError - `string` prop is not a string
|
178
|
+
string={1}
|
179
|
+
user={aUserRef}
|
180
|
+
nullableUser={null}
|
181
|
+
/>;
|
182
|
+
|
183
|
+
<SingularTestFragment
|
184
|
+
onClick={cb}
|
185
|
+
string="x"
|
186
|
+
user={aUserRef}
|
187
|
+
nullableUser={null}
|
188
|
+
/>;
|
189
|
+
<SingularTestFragment
|
166
190
|
onClick={cb}
|
167
191
|
string="x"
|
168
192
|
user={aUserRef}
|
169
193
|
nullableUser={aUserRef}
|
170
194
|
/>;
|
171
|
-
<
|
195
|
+
<SingularTestFragment
|
172
196
|
onClick={cb}
|
173
197
|
string="x"
|
174
198
|
user={aUserRef}
|
@@ -177,7 +201,7 @@ function cb(): void {}
|
|
177
201
|
/>;
|
178
202
|
|
179
203
|
// $FlowExpectedError - onClick is required
|
180
|
-
<
|
204
|
+
<SingularTestFragment
|
181
205
|
string="x"
|
182
206
|
user={aUserRef}
|
183
207
|
nullableUser={null}
|
@@ -186,13 +210,13 @@ function cb(): void {}
|
|
186
210
|
/>;
|
187
211
|
|
188
212
|
declare var aComplexUserRef: {
|
189
|
-
+$
|
213
|
+
+$fragmentSpreads: {thing1: true, ...} & RelayModernFlowtest_user$ref & {
|
190
214
|
thing2: true,
|
191
215
|
...
|
192
216
|
},
|
193
217
|
...
|
194
218
|
};
|
195
|
-
<
|
219
|
+
<SingularTestFragment
|
196
220
|
string="x"
|
197
221
|
onClick={cb}
|
198
222
|
user={aComplexUserRef}
|
@@ -201,34 +225,42 @@ declare var aComplexUserRef: {
|
|
201
225
|
/>;
|
202
226
|
|
203
227
|
// $FlowExpectedError - can't pass null for user
|
204
|
-
<
|
228
|
+
<PluralTestFragment users={null} nullableUsers={null} />;
|
205
229
|
// $FlowExpectedError - users is required
|
206
|
-
<
|
230
|
+
<PluralTestFragment nullableUsers={null} />;
|
207
231
|
// $FlowExpectedError - can't pass non-user refs for user
|
208
|
-
<
|
232
|
+
<PluralTestFragment users={[nonUserRef]} nullableUsers={null} />;
|
209
233
|
|
210
|
-
<
|
234
|
+
<PluralTestFragment users={usersRef} nullableUsers={null} />;
|
211
235
|
|
212
|
-
<
|
236
|
+
<PluralTestFragment
|
213
237
|
users={([oneOfUsersRef]: Array<typeof oneOfUsersRef>)}
|
214
238
|
nullableUsers={null}
|
215
239
|
/>;
|
216
|
-
<
|
240
|
+
<PluralTestFragment users={[oneOfUsersRef]} nullableUsers={null} />;
|
217
241
|
|
218
|
-
<
|
219
|
-
<
|
220
|
-
|
221
|
-
|
242
|
+
<PluralTestFragment users={usersRef} nullableUsers={[oneOfUsersRef]} />;
|
243
|
+
<PluralTestFragment
|
244
|
+
users={usersRef}
|
245
|
+
nullableUsers={null}
|
246
|
+
optionalUsers={usersRef}
|
247
|
+
/>;
|
248
|
+
<PluralTestFragment
|
249
|
+
users={usersRef}
|
250
|
+
nullableUsers={null}
|
251
|
+
// $FlowExpectedError - optional, not nullable!
|
252
|
+
optionalUsers={null}
|
253
|
+
/>;
|
222
254
|
|
223
255
|
class AnyTest extends React.Component<{|
|
224
256
|
anything: any,
|
225
257
|
|}> {}
|
226
258
|
const AnyTestContainer = createFragmentContainer(AnyTest, {});
|
227
259
|
|
228
|
-
<
|
229
|
-
<
|
230
|
-
<
|
260
|
+
<AnyTestContainer anything={42} />;
|
261
|
+
<AnyTestContainer anything={null} />;
|
262
|
+
<AnyTestContainer anything={() => {}} />;
|
231
263
|
// $FlowExpectedError - any other prop can not be passed
|
232
|
-
<
|
264
|
+
<AnyTestContainer anything={null} anythingElse={42} />;
|
233
265
|
// $FlowExpectedError - anything has to be passed
|
234
|
-
<
|
266
|
+
<AnyTestContainer />;
|
@@ -13,10 +13,11 @@
|
|
13
13
|
'use strict';
|
14
14
|
|
15
15
|
import type {RelayModernFlowtest_user$ref} from './RelayModernFlowtest_user.graphql';
|
16
|
-
import type {
|
17
|
-
|
16
|
+
import type {FragmentType} from 'relay-runtime';
|
17
|
+
|
18
|
+
declare export opaque type RelayModernFlowtest_badref$ref: FragmentType;
|
18
19
|
export type RelayModernFlowtest_badref = {|
|
19
20
|
+id: string,
|
20
|
-
+$
|
21
|
-
+$
|
21
|
+
+$fragmentSpreads: RelayModernFlowtest_user$ref,
|
22
|
+
+$fragmentType: RelayModernFlowtest_badref$ref,
|
22
23
|
|};
|
@@ -13,10 +13,11 @@
|
|
13
13
|
'use strict';
|
14
14
|
|
15
15
|
import type {RelayModernFlowtest_user$ref} from './RelayModernFlowtest_user.graphql';
|
16
|
-
import type {
|
17
|
-
|
16
|
+
import type {FragmentType} from 'relay-runtime';
|
17
|
+
|
18
|
+
declare export opaque type RelayModernFlowtest_notref$ref: FragmentType;
|
18
19
|
export type RelayModernFlowtest_notref = {|
|
19
20
|
+id: string,
|
20
|
-
+$
|
21
|
-
+$
|
21
|
+
+$fragmentSpreads: RelayModernFlowtest_user$ref,
|
22
|
+
+$fragmentType: RelayModernFlowtest_notref$ref,
|
22
23
|
|};
|
@@ -12,9 +12,10 @@
|
|
12
12
|
|
13
13
|
'use strict';
|
14
14
|
|
15
|
-
import type {
|
16
|
-
|
15
|
+
import type {FragmentType} from 'relay-runtime';
|
16
|
+
|
17
|
+
declare export opaque type RelayModernFlowtest_user$ref: FragmentType;
|
17
18
|
export type RelayModernFlowtest_user = {|
|
18
19
|
+name: ?string,
|
19
|
-
+$
|
20
|
+
+$fragmentType: RelayModernFlowtest_user$ref,
|
20
21
|
|};
|
@@ -12,9 +12,10 @@
|
|
12
12
|
|
13
13
|
'use strict';
|
14
14
|
|
15
|
-
import type {
|
16
|
-
|
15
|
+
import type {FragmentType} from 'relay-runtime';
|
16
|
+
|
17
|
+
declare export opaque type RelayModernFlowtest_users$ref: FragmentType;
|
17
18
|
export type RelayModernFlowtest_users = $ReadOnlyArray<{|
|
18
19
|
+name: ?string,
|
19
|
-
+$
|
20
|
+
+$fragmentType: RelayModernFlowtest_users$ref,
|
20
21
|
|}>;
|
package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<19f712deffd1a0e40df03d0125844de6>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,20 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type ReactRelayFragmentContainerFlowtest_viewer$
|
21
|
-
|
22
|
-
export type ReactRelayFragmentContainerFlowtest_viewer = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayFragmentContainerFlowtest_viewer$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayFragmentContainerFlowtest_viewer$ref = ReactRelayFragmentContainerFlowtest_viewer$fragmentType;
|
22
|
+
export type ReactRelayFragmentContainerFlowtest_viewer$data = {|
|
23
23
|
+actor: ?{|
|
24
24
|
+id: string,
|
25
25
|
|},
|
26
|
-
+$
|
26
|
+
+$fragmentType: ReactRelayFragmentContainerFlowtest_viewer$fragmentType,
|
27
27
|
|};
|
28
|
-
export type ReactRelayFragmentContainerFlowtest_viewer
|
28
|
+
export type ReactRelayFragmentContainerFlowtest_viewer = ReactRelayFragmentContainerFlowtest_viewer$data;
|
29
29
|
export type ReactRelayFragmentContainerFlowtest_viewer$key = {
|
30
30
|
+$data?: ReactRelayFragmentContainerFlowtest_viewer$data,
|
31
|
-
+$
|
31
|
+
+$fragmentSpreads: ReactRelayFragmentContainerFlowtest_viewer$fragmentType,
|
32
32
|
...
|
33
33
|
};
|
34
34
|
*/
|
@@ -66,4 +66,7 @@ if (__DEV__) {
|
|
66
66
|
(node/*: any*/).hash = "75147ebd599fe1c406f2dfc7abb164f8";
|
67
67
|
}
|
68
68
|
|
69
|
-
module.exports = node
|
69
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
70
|
+
ReactRelayFragmentContainerFlowtest_viewer$fragmentType,
|
71
|
+
ReactRelayFragmentContainerFlowtest_viewer$data,
|
72
|
+
>*/);
|
package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer2.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<88137405f8de7a0ced4a2af2bbf32a29>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,20 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type ReactRelayFragmentContainerFlowtest_viewer2$
|
21
|
-
|
22
|
-
export type ReactRelayFragmentContainerFlowtest_viewer2 = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayFragmentContainerFlowtest_viewer2$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayFragmentContainerFlowtest_viewer2$ref = ReactRelayFragmentContainerFlowtest_viewer2$fragmentType;
|
22
|
+
export type ReactRelayFragmentContainerFlowtest_viewer2$data = {|
|
23
23
|
+actor: ?{|
|
24
24
|
+id: string,
|
25
25
|
|},
|
26
|
-
+$
|
26
|
+
+$fragmentType: ReactRelayFragmentContainerFlowtest_viewer2$fragmentType,
|
27
27
|
|};
|
28
|
-
export type ReactRelayFragmentContainerFlowtest_viewer2
|
28
|
+
export type ReactRelayFragmentContainerFlowtest_viewer2 = ReactRelayFragmentContainerFlowtest_viewer2$data;
|
29
29
|
export type ReactRelayFragmentContainerFlowtest_viewer2$key = {
|
30
30
|
+$data?: ReactRelayFragmentContainerFlowtest_viewer2$data,
|
31
|
-
+$
|
31
|
+
+$fragmentSpreads: ReactRelayFragmentContainerFlowtest_viewer2$fragmentType,
|
32
32
|
...
|
33
33
|
};
|
34
34
|
*/
|
@@ -66,4 +66,7 @@ if (__DEV__) {
|
|
66
66
|
(node/*: any*/).hash = "0f55965b7c9aca0d661ebdd96c70e384";
|
67
67
|
}
|
68
68
|
|
69
|
-
module.exports = node
|
69
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
70
|
+
ReactRelayFragmentContainerFlowtest_viewer2$fragmentType,
|
71
|
+
ReactRelayFragmentContainerFlowtest_viewer2$data,
|
72
|
+
>*/);
|
package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<5522fec854de09ce0ae6f0046e721cd8>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,22 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ConcreteRequest } from 'relay-runtime';
|
19
|
-
type ReactRelayPaginationContainerFlowtest_viewer$
|
20
|
-
export type
|
18
|
+
import type { ConcreteRequest, Query } from 'relay-runtime';
|
19
|
+
type ReactRelayPaginationContainerFlowtest_viewer$fragmentType = any;
|
20
|
+
export type ReactRelayPaginationContainerFlowtestQuery$variables = {|
|
21
21
|
count: number,
|
22
22
|
cursor?: ?string,
|
23
23
|
|};
|
24
|
-
export type
|
24
|
+
export type ReactRelayPaginationContainerFlowtestQueryVariables = ReactRelayPaginationContainerFlowtestQuery$variables;
|
25
|
+
export type ReactRelayPaginationContainerFlowtestQuery$data = {|
|
25
26
|
+viewer: ?{|
|
26
|
-
+$
|
27
|
+
+$fragmentSpreads: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
27
28
|
|},
|
28
29
|
|};
|
30
|
+
export type ReactRelayPaginationContainerFlowtestQueryResponse = ReactRelayPaginationContainerFlowtestQuery$data;
|
29
31
|
export type ReactRelayPaginationContainerFlowtestQuery = {|
|
30
32
|
variables: ReactRelayPaginationContainerFlowtestQueryVariables,
|
31
|
-
response:
|
33
|
+
response: ReactRelayPaginationContainerFlowtestQuery$data,
|
32
34
|
|};
|
33
35
|
*/
|
34
36
|
|
@@ -219,4 +221,7 @@ if (__DEV__) {
|
|
219
221
|
(node/*: any*/).hash = "712afeafa1f51bfe391719629a0fcea0";
|
220
222
|
}
|
221
223
|
|
222
|
-
module.exports = node
|
224
|
+
module.exports = ((node/*: any*/)/*: Query<
|
225
|
+
ReactRelayPaginationContainerFlowtestQuery$variables,
|
226
|
+
ReactRelayPaginationContainerFlowtestQuery$data,
|
227
|
+
>*/);
|
package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<2d73f66797fb376dd27de9625c67deac>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,11 +15,11 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type ReactRelayPaginationContainerFlowtest_viewer$
|
21
|
-
|
22
|
-
export type ReactRelayPaginationContainerFlowtest_viewer = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayPaginationContainerFlowtest_viewer$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayPaginationContainerFlowtest_viewer$ref = ReactRelayPaginationContainerFlowtest_viewer$fragmentType;
|
22
|
+
export type ReactRelayPaginationContainerFlowtest_viewer$data = {|
|
23
23
|
+account_user: ?{|
|
24
24
|
+friends: ?{|
|
25
25
|
+edges: ?$ReadOnlyArray<?{|
|
@@ -29,12 +29,12 @@ export type ReactRelayPaginationContainerFlowtest_viewer = {|
|
|
29
29
|
|}>,
|
30
30
|
|},
|
31
31
|
|},
|
32
|
-
+$
|
32
|
+
+$fragmentType: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
33
33
|
|};
|
34
|
-
export type ReactRelayPaginationContainerFlowtest_viewer
|
34
|
+
export type ReactRelayPaginationContainerFlowtest_viewer = ReactRelayPaginationContainerFlowtest_viewer$data;
|
35
35
|
export type ReactRelayPaginationContainerFlowtest_viewer$key = {
|
36
36
|
+$data?: ReactRelayPaginationContainerFlowtest_viewer$data,
|
37
|
-
+$
|
37
|
+
+$fragmentSpreads: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
38
38
|
...
|
39
39
|
};
|
40
40
|
*/
|
@@ -158,4 +158,7 @@ if (__DEV__) {
|
|
158
158
|
(node/*: any*/).hash = "0db8995009ebfee6165f6bbaa465d13f";
|
159
159
|
}
|
160
160
|
|
161
|
-
module.exports = node
|
161
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
162
|
+
ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
163
|
+
ReactRelayPaginationContainerFlowtest_viewer$data,
|
164
|
+
>*/);
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<d42e37dc6a0fb5b60070a2beb019d93c>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,22 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ConcreteRequest } from 'relay-runtime';
|
19
|
-
type ReactRelayRefetchContainerFlowtest_viewer$
|
20
|
-
export type
|
18
|
+
import type { ConcreteRequest, Query } from 'relay-runtime';
|
19
|
+
type ReactRelayRefetchContainerFlowtest_viewer$fragmentType = any;
|
20
|
+
export type ReactRelayRefetchContainerFlowtestQuery$variables = {|
|
21
21
|
count: number,
|
22
22
|
cursor?: ?string,
|
23
23
|
|};
|
24
|
-
export type
|
24
|
+
export type ReactRelayRefetchContainerFlowtestQueryVariables = ReactRelayRefetchContainerFlowtestQuery$variables;
|
25
|
+
export type ReactRelayRefetchContainerFlowtestQuery$data = {|
|
25
26
|
+viewer: ?{|
|
26
|
-
+$
|
27
|
+
+$fragmentSpreads: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
27
28
|
|},
|
28
29
|
|};
|
30
|
+
export type ReactRelayRefetchContainerFlowtestQueryResponse = ReactRelayRefetchContainerFlowtestQuery$data;
|
29
31
|
export type ReactRelayRefetchContainerFlowtestQuery = {|
|
30
32
|
variables: ReactRelayRefetchContainerFlowtestQueryVariables,
|
31
|
-
response:
|
33
|
+
response: ReactRelayRefetchContainerFlowtestQuery$data,
|
32
34
|
|};
|
33
35
|
*/
|
34
36
|
|
@@ -219,4 +221,7 @@ if (__DEV__) {
|
|
219
221
|
(node/*: any*/).hash = "ce05ae9de6327d14ff0f3813ec77e594";
|
220
222
|
}
|
221
223
|
|
222
|
-
module.exports = node
|
224
|
+
module.exports = ((node/*: any*/)/*: Query<
|
225
|
+
ReactRelayRefetchContainerFlowtestQuery$variables,
|
226
|
+
ReactRelayRefetchContainerFlowtestQuery$data,
|
227
|
+
>*/);
|
package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtest_viewer.graphql.js.flow
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<343eb8b15c596ab2aeccd2e9c65aacc8>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,11 +15,11 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
import type {
|
20
|
-
declare export opaque type ReactRelayRefetchContainerFlowtest_viewer$
|
21
|
-
|
22
|
-
export type ReactRelayRefetchContainerFlowtest_viewer = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayRefetchContainerFlowtest_viewer$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayRefetchContainerFlowtest_viewer$ref = ReactRelayRefetchContainerFlowtest_viewer$fragmentType;
|
22
|
+
export type ReactRelayRefetchContainerFlowtest_viewer$data = {|
|
23
23
|
+account_user: ?{|
|
24
24
|
+friends: ?{|
|
25
25
|
+edges: ?$ReadOnlyArray<?{|
|
@@ -29,12 +29,12 @@ export type ReactRelayRefetchContainerFlowtest_viewer = {|
|
|
29
29
|
|}>,
|
30
30
|
|},
|
31
31
|
|},
|
32
|
-
+$
|
32
|
+
+$fragmentType: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
33
33
|
|};
|
34
|
-
export type ReactRelayRefetchContainerFlowtest_viewer
|
34
|
+
export type ReactRelayRefetchContainerFlowtest_viewer = ReactRelayRefetchContainerFlowtest_viewer$data;
|
35
35
|
export type ReactRelayRefetchContainerFlowtest_viewer$key = {
|
36
36
|
+$data?: ReactRelayRefetchContainerFlowtest_viewer$data,
|
37
|
-
+$
|
37
|
+
+$fragmentSpreads: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
38
38
|
...
|
39
39
|
};
|
40
40
|
*/
|
@@ -158,4 +158,7 @@ if (__DEV__) {
|
|
158
158
|
(node/*: any*/).hash = "cf098b4248d8ddfacfc0d356838697bb";
|
159
159
|
}
|
160
160
|
|
161
|
-
module.exports = node
|
161
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
162
|
+
ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
163
|
+
ReactRelayRefetchContainerFlowtest_viewer$data,
|
164
|
+
>*/);
|
@@ -4,7 +4,7 @@
|
|
4
4
|
* This source code is licensed under the MIT license found in the
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
6
6
|
*
|
7
|
-
* @generated SignedSource<<
|
7
|
+
* @generated SignedSource<<2e6de02332132a03de07b1bee9c8ceac>>
|
8
8
|
* @flow
|
9
9
|
* @lightSyntaxTransform
|
10
10
|
* @nogrep
|
@@ -15,20 +15,20 @@
|
|
15
15
|
'use strict';
|
16
16
|
|
17
17
|
/*::
|
18
|
-
import type { ReaderFragment } from 'relay-runtime';
|
19
|
-
type RelayModernFlowtest_user$
|
20
|
-
import type {
|
21
|
-
declare export opaque type RelayModernFlowtest_badref$
|
22
|
-
|
23
|
-
export type RelayModernFlowtest_badref = {|
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
type RelayModernFlowtest_user$fragmentType = any;
|
20
|
+
import type { FragmentType } from "relay-runtime";
|
21
|
+
declare export opaque type RelayModernFlowtest_badref$fragmentType: FragmentType;
|
22
|
+
export type RelayModernFlowtest_badref$ref = RelayModernFlowtest_badref$fragmentType;
|
23
|
+
export type RelayModernFlowtest_badref$data = {|
|
24
24
|
+id: string,
|
25
|
-
+$
|
26
|
-
+$
|
25
|
+
+$fragmentSpreads: RelayModernFlowtest_user$fragmentType,
|
26
|
+
+$fragmentType: RelayModernFlowtest_badref$fragmentType,
|
27
27
|
|};
|
28
|
-
export type RelayModernFlowtest_badref
|
28
|
+
export type RelayModernFlowtest_badref = RelayModernFlowtest_badref$data;
|
29
29
|
export type RelayModernFlowtest_badref$key = {
|
30
30
|
+$data?: RelayModernFlowtest_badref$data,
|
31
|
-
+$
|
31
|
+
+$fragmentSpreads: RelayModernFlowtest_badref$fragmentType,
|
32
32
|
...
|
33
33
|
};
|
34
34
|
*/
|
@@ -60,4 +60,7 @@ if (__DEV__) {
|
|
60
60
|
(node/*: any*/).hash = "a04dc2854770919bd070bdc717de7812";
|
61
61
|
}
|
62
62
|
|
63
|
-
module.exports = node
|
63
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
64
|
+
RelayModernFlowtest_badref$fragmentType,
|
65
|
+
RelayModernFlowtest_badref$data,
|
66
|
+
>*/);
|