@isograph/react 0.0.0-main-ff1975f2 → 0.0.0-main-dc7beaea

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 +1 @@
1
- {"version":3,"file":"componentCache.d.ts","sourceRoot":"","sources":["../../src/core/componentCache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAIrD,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,EAC9C,qBAAqB,EAAE,2BAA2B,GACjD,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAkDf"}
1
+ {"version":3,"file":"componentCache.d.ts","sourceRoot":"","sources":["../../src/core/componentCache.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,2BAA2B,EAAE,MAAM,QAAQ,CAAC;AAIrD,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,mBAAmB,EAChC,aAAa,EAAE,MAAM,EACrB,iBAAiB,EAAE,iBAAiB,CAAC,GAAG,EAAE,GAAG,CAAC,EAC9C,qBAAqB,EAAE,2BAA2B,GACjD,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,CAgDf"}
@@ -26,11 +26,10 @@ function getOrCreateCachedComponent(environment, componentName, fragmentReferenc
26
26
  componentName,
27
27
  rootLink: fragmentReference.root,
28
28
  });
29
- const firstParameter = {
29
+ return readerWithRefetchQueries.readerArtifact.resolver({
30
30
  data,
31
31
  parameters: fragmentReference.variables,
32
- };
33
- return readerWithRefetchQueries.readerArtifact.resolver(firstParameter, additionalRuntimeProps);
32
+ }, additionalRuntimeProps);
34
33
  }
35
34
  Component.displayName = `${componentName} (id: ${fragmentReference.root}) @component`;
36
35
  return Component;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@isograph/react",
3
- "version": "0.0.0-main-ff1975f2",
3
+ "version": "0.0.0-main-dc7beaea",
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-watch": "../../target/debug/isograph_cli --config ./isograph.config.json --watch"
20
20
  },
21
21
  "dependencies": {
22
- "@isograph/disposable-types": "0.0.0-main-ff1975f2",
23
- "@isograph/react-disposable-state": "0.0.0-main-ff1975f2",
24
- "@isograph/reference-counted-pointer": "0.0.0-main-ff1975f2"
22
+ "@isograph/disposable-types": "0.0.0-main-dc7beaea",
23
+ "@isograph/react-disposable-state": "0.0.0-main-dc7beaea",
24
+ "@isograph/reference-counted-pointer": "0.0.0-main-dc7beaea"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": "18.3.1"
@@ -47,13 +47,11 @@ export function getOrCreateCachedComponent(
47
47
  rootLink: fragmentReference.root,
48
48
  });
49
49
 
50
- const firstParameter = {
51
- data,
52
- parameters: fragmentReference.variables,
53
- };
54
-
55
50
  return readerWithRefetchQueries.readerArtifact.resolver(
56
- firstParameter,
51
+ {
52
+ data,
53
+ parameters: fragmentReference.variables,
54
+ },
57
55
  additionalRuntimeProps,
58
56
  );
59
57
  }