react-relay 0.0.0-main-cb60dbd1 → 0.0.0-main-ac292aed
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactRelayContext.js +1 -1
- package/getRootVariablesForFragments.js.flow +2 -2
- package/hooks.js +1 -1
- package/index.js +1 -1
- package/legacy.js +1 -1
- package/package.json +2 -2
- package/relay-hooks/getConnectionState.js.flow +2 -2
package/ReactRelayContext.js
CHANGED
|
@@ -30,8 +30,8 @@ function getRootVariablesForFragments<TProps: {...}>(
|
|
|
30
30
|
const selector = getSelector(fragmentNode, fragmentRef);
|
|
31
31
|
const fragmentOwnerVariables =
|
|
32
32
|
selector != null && selector.kind === 'PluralReaderSelector'
|
|
33
|
-
? selector.selectors[0]?.owner.variables ?? {}
|
|
34
|
-
: selector?.owner.variables ?? {};
|
|
33
|
+
? (selector.selectors[0]?.owner.variables ?? {})
|
|
34
|
+
: (selector?.owner.variables ?? {});
|
|
35
35
|
/* $FlowFixMe[incompatible-indexer] Natural Inference rollout. See
|
|
36
36
|
* https://fburl.com/gdoc/y8dn025u */
|
|
37
37
|
rootVariables = {
|
package/hooks.js
CHANGED
package/index.js
CHANGED
package/legacy.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-relay",
|
|
3
3
|
"description": "A framework for building GraphQL-driven React applications.",
|
|
4
|
-
"version": "0.0.0-main-
|
|
4
|
+
"version": "0.0.0-main-ac292aed",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"graphql",
|
|
7
7
|
"relay",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"fbjs": "^3.0.2",
|
|
21
21
|
"invariant": "^2.2.4",
|
|
22
22
|
"nullthrows": "^1.1.1",
|
|
23
|
-
"relay-runtime": "0.0.0-main-
|
|
23
|
+
"relay-runtime": "0.0.0-main-ac292aed"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.9.0 || ^17 || ^18 || ^19"
|
|
@@ -73,8 +73,8 @@ function getConnectionState(
|
|
|
73
73
|
|
|
74
74
|
const cursor =
|
|
75
75
|
direction === 'forward'
|
|
76
|
-
? pageInfo[END_CURSOR] ?? null
|
|
77
|
-
: pageInfo[START_CURSOR] ?? null;
|
|
76
|
+
? (pageInfo[END_CURSOR] ?? null)
|
|
77
|
+
: (pageInfo[START_CURSOR] ?? null);
|
|
78
78
|
invariant(
|
|
79
79
|
cursor === null || typeof cursor === 'string',
|
|
80
80
|
'Relay: Expected page info for connection in fragment `%s` to have a ' +
|