@isograph/react 0.0.0-main-f60a695a → 0.0.0-main-7f0213de
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/dist/core/read.js +2 -2
- package/package.json +4 -4
- package/src/core/read.ts +2 -2
package/dist/core/read.js
CHANGED
@@ -13,7 +13,7 @@ function readButDoNotEvaluate(environment, fragmentReference, networkRequestOpti
|
|
13
13
|
const response = readData(environment, readerWithRefetchQueries.readerArtifact.readerAst, fragmentReference.root, (_a = fragmentReference.variables) !== null && _a !== void 0 ? _a : {}, readerWithRefetchQueries.nestedRefetchQueries, fragmentReference.networkRequest, networkRequestOptions, mutableEncounteredRecords);
|
14
14
|
// @ts-expect-error
|
15
15
|
if (typeof window !== 'undefined' && window.__LOG) {
|
16
|
-
console.log('done reading', { response });
|
16
|
+
console.log('done reading: ' + response.kind, { response });
|
17
17
|
}
|
18
18
|
if (response.kind === 'MissingData') {
|
19
19
|
// There are two cases here that we care about:
|
@@ -202,7 +202,7 @@ function readData(environment, ast, root, variables, nestedRefetchQueries, netwo
|
|
202
202
|
const resolverRefetchQueries = usedRefetchQueries.map((index) => nestedRefetchQueries[index]);
|
203
203
|
switch (field.readerArtifact.kind) {
|
204
204
|
case 'EagerReaderArtifact': {
|
205
|
-
const data = readData(environment, field.readerArtifact.readerAst, root, variables, resolverRefetchQueries, networkRequest, networkRequestOptions, mutableEncounteredRecords);
|
205
|
+
const data = readData(environment, field.readerArtifact.readerAst, root, generateChildVariableMap(variables, field.arguments), resolverRefetchQueries, networkRequest, networkRequestOptions, mutableEncounteredRecords);
|
206
206
|
if (data.kind === 'MissingData') {
|
207
207
|
return {
|
208
208
|
kind: 'MissingData',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@isograph/react",
|
3
|
-
"version": "0.0.0-main-
|
3
|
+
"version": "0.0.0-main-7f0213de",
|
4
4
|
"description": "Use Isograph with React",
|
5
5
|
"homepage": "https://isograph.dev",
|
6
6
|
"main": "dist/index.js",
|
@@ -17,9 +17,9 @@
|
|
17
17
|
"tsc": "tsc"
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
|
-
"@isograph/disposable-types": "0.0.0-main-
|
21
|
-
"@isograph/react-disposable-state": "0.0.0-main-
|
22
|
-
"@isograph/reference-counted-pointer": "0.0.0-main-
|
20
|
+
"@isograph/disposable-types": "0.0.0-main-7f0213de",
|
21
|
+
"@isograph/react-disposable-state": "0.0.0-main-7f0213de",
|
22
|
+
"@isograph/reference-counted-pointer": "0.0.0-main-7f0213de"
|
23
23
|
},
|
24
24
|
"peerDependencies": {
|
25
25
|
"react": "18.2.0"
|
package/src/core/read.ts
CHANGED
@@ -59,7 +59,7 @@ export function readButDoNotEvaluate<
|
|
59
59
|
);
|
60
60
|
// @ts-expect-error
|
61
61
|
if (typeof window !== 'undefined' && window.__LOG) {
|
62
|
-
console.log('done reading', { response });
|
62
|
+
console.log('done reading: ' + response.kind, { response });
|
63
63
|
}
|
64
64
|
if (response.kind === 'MissingData') {
|
65
65
|
// There are two cases here that we care about:
|
@@ -319,7 +319,7 @@ function readData<TReadFromStore>(
|
|
319
319
|
environment,
|
320
320
|
field.readerArtifact.readerAst,
|
321
321
|
root,
|
322
|
-
variables,
|
322
|
+
generateChildVariableMap(variables, field.arguments),
|
323
323
|
resolverRefetchQueries,
|
324
324
|
networkRequest,
|
325
325
|
networkRequestOptions,
|