@octanejs/apollo-client 0.1.39 → 0.1.41
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/apollo-client",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@apollo/client": ">=4.2.6 <4.3.0",
|
|
64
64
|
"graphql": "^16.0.0 || ^17.0.0",
|
|
65
65
|
"rxjs": "^7.3.0",
|
|
66
|
-
"octane": "0.1.
|
|
66
|
+
"octane": "0.1.46"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@apollo/client": "4.2.6",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"react-dom": "^19.2.7",
|
|
75
75
|
"rxjs": "^7.8.2",
|
|
76
76
|
"vitest": "^4.1.10",
|
|
77
|
-
"octane": "0.1.
|
|
77
|
+
"octane": "0.1.46"
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"test": "vitest run --root ../.. --project apollo-client"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'octane';
|
|
2
2
|
const fallbackSite = Symbol('apollo.__use');
|
|
3
3
|
// Apollo's React adapter falls back to throwing decorated promises on React 18.
|
|
4
|
-
// Octane always has use(),
|
|
5
|
-
//
|
|
6
|
-
//
|
|
4
|
+
// Octane always has use(), so the adapter uses it directly. The public hook's
|
|
5
|
+
// compiler-provided site is threaded through on the server so conditional
|
|
6
|
+
// sibling hooks keep stable SSR cache identities.
|
|
7
7
|
export function __use(promise, site) {
|
|
8
8
|
return React.use(promise, site ?? fallbackSite);
|
|
9
9
|
}
|