@isograph/react 0.0.0-main-13943976 → 0.0.0-main-edff239b

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.
@@ -1,5 +1,5 @@
1
1
  ../.. |  WARN  Unsupported engine: wanted: {"node":"22.9.0"} (current: {"node":"v22.19.0","pnpm":"10.15.0"})
2
2
 
3
- > @isograph/react@0.0.0-main-13943976 compile-libs /home/runner/work/isograph/isograph/libs/isograph-react
3
+ > @isograph/react@0.0.0-main-edff239b compile-libs /home/runner/work/isograph/isograph/libs/isograph-react
4
4
  > rimraf dist && tsc -p tsconfig.pkg.json
5
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"areEqualWithDeepComparison.d.ts","sourceRoot":"","sources":["../../src/core/areEqualWithDeepComparison.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAwC,MAAM,UAAU,CAAC;AA+DhF,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,SAAS,CAAC,MAAM,CAAC,EACtB,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACpB,MAAM,CA+DR"}
1
+ {"version":3,"file":"areEqualWithDeepComparison.d.ts","sourceRoot":"","sources":["../../src/core/areEqualWithDeepComparison.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAwC,MAAM,UAAU,CAAC;AA+DhF,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,SAAS,CAAC,MAAM,CAAC,EACtB,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,MAAM,GACpB,MAAM,CAoER"}
@@ -53,6 +53,11 @@ function mergeObjectsUsingReaderAst(ast, oldItemObject, newItemObject) {
53
53
  switch (field.kind) {
54
54
  case 'Scalar':
55
55
  case 'Linked':
56
+ if (field.kind === 'Linked' && field.refetchQueryIndex != null) {
57
+ // client pointers are functions, so we can't merge them
58
+ canRecycle = false;
59
+ break;
60
+ }
56
61
  const key = (_a = field.alias) !== null && _a !== void 0 ? _a : field.fieldName;
57
62
  // @ts-expect-error
58
63
  const oldValue = oldItemObject[key];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isograph/react",
3
- "version": "0.0.0-main-13943976",
3
+ "version": "0.0.0-main-edff239b",
4
4
  "description": "Use Isograph with React",
5
5
  "homepage": "https://isograph.dev",
6
6
  "main": "dist/index.js",
@@ -19,9 +19,9 @@
19
19
  "iso": "cross-env ISO_PRINT_ABSOLUTE_FILEPATH=1 ../../target/debug/isograph_cli --config ./isograph.config.json"
20
20
  },
21
21
  "dependencies": {
22
- "@isograph/disposable-types": "0.0.0-main-13943976",
23
- "@isograph/react-disposable-state": "0.0.0-main-13943976",
24
- "@isograph/reference-counted-pointer": "0.0.0-main-13943976"
22
+ "@isograph/disposable-types": "0.0.0-main-edff239b",
23
+ "@isograph/react-disposable-state": "0.0.0-main-edff239b",
24
+ "@isograph/reference-counted-pointer": "0.0.0-main-edff239b"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "^18.0.0 || ^19.0.0"
@@ -72,6 +72,11 @@ export function mergeObjectsUsingReaderAst(
72
72
  switch (field.kind) {
73
73
  case 'Scalar':
74
74
  case 'Linked':
75
+ if (field.kind === 'Linked' && field.refetchQueryIndex != null) {
76
+ // client pointers are functions, so we can't merge them
77
+ canRecycle = false;
78
+ break;
79
+ }
75
80
  const key = field.alias ?? field.fieldName;
76
81
  // @ts-expect-error
77
82
  const oldValue = oldItemObject[key];