houdini-react 1.2.32 → 1.2.34
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.
|
@@ -78996,7 +78996,7 @@ function page_id(path3) {
|
|
|
78996
78996
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
78997
78997
|
path3 = path3.substring(0, path3.length - 1);
|
|
78998
78998
|
}
|
|
78999
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
78999
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
79000
79000
|
const mask = "_";
|
|
79001
79001
|
let copy = "";
|
|
79002
79002
|
for (const char of path3) {
|
|
@@ -78986,7 +78986,7 @@ function page_id(path3) {
|
|
|
78986
78986
|
if (path3.endsWith("/") && path3.length > 1) {
|
|
78987
78987
|
path3 = path3.substring(0, path3.length - 1);
|
|
78988
78988
|
}
|
|
78989
|
-
const special_chars = ["/", "]", "[", "(", ")"];
|
|
78989
|
+
const special_chars = ["/", "]", "[", "(", ")", "-"];
|
|
78990
78990
|
const mask = "_";
|
|
78991
78991
|
let copy = "";
|
|
78992
78992
|
for (const char of path3) {
|
|
@@ -118,9 +118,7 @@ function usePageData({
|
|
|
118
118
|
for (const artifact2 of Object.keys(page.documents)) {
|
|
119
119
|
last_variables.set(artifact2, variables);
|
|
120
120
|
}
|
|
121
|
-
console.log("loading query", artifact.name);
|
|
122
121
|
if (ssr_signals.has(id)) {
|
|
123
|
-
console.log("using ssr signal", id);
|
|
124
122
|
return ssr_signals.get(id);
|
|
125
123
|
}
|
|
126
124
|
const observer = client.observe({ artifact, cache });
|
|
@@ -131,13 +129,11 @@ function usePageData({
|
|
|
131
129
|
const promise = new Promise((res, rej) => {
|
|
132
130
|
resolve = res;
|
|
133
131
|
reject = rej;
|
|
134
|
-
console.log("sending query", id, variables);
|
|
135
132
|
observer.send({
|
|
136
133
|
variables,
|
|
137
134
|
cacheParams: { disableSubscriptions: true },
|
|
138
135
|
session
|
|
139
136
|
}).then(() => {
|
|
140
|
-
console.log("resolved query", id, variables);
|
|
141
137
|
data_cache.set(id, observer);
|
|
142
138
|
injectToStream?.(`
|
|
143
139
|
<script>
|
|
@@ -193,7 +189,6 @@ function usePageData({
|
|
|
193
189
|
}
|
|
194
190
|
|
|
195
191
|
|
|
196
|
-
console.log('clearing ssr signal', artifactName)
|
|
197
192
|
// trigger the signal
|
|
198
193
|
window.__houdini__nav_caches__.ssr_signals.get(artifactName).resolve()
|
|
199
194
|
window.__houdini__nav_caches__.ssr_signals.delete(artifactName)
|
|
@@ -80,9 +80,7 @@ function usePageData({
|
|
|
80
80
|
for (const artifact2 of Object.keys(page.documents)) {
|
|
81
81
|
last_variables.set(artifact2, variables);
|
|
82
82
|
}
|
|
83
|
-
console.log("loading query", artifact.name);
|
|
84
83
|
if (ssr_signals.has(id)) {
|
|
85
|
-
console.log("using ssr signal", id);
|
|
86
84
|
return ssr_signals.get(id);
|
|
87
85
|
}
|
|
88
86
|
const observer = client.observe({ artifact, cache });
|
|
@@ -93,13 +91,11 @@ function usePageData({
|
|
|
93
91
|
const promise = new Promise((res, rej) => {
|
|
94
92
|
resolve = res;
|
|
95
93
|
reject = rej;
|
|
96
|
-
console.log("sending query", id, variables);
|
|
97
94
|
observer.send({
|
|
98
95
|
variables,
|
|
99
96
|
cacheParams: { disableSubscriptions: true },
|
|
100
97
|
session
|
|
101
98
|
}).then(() => {
|
|
102
|
-
console.log("resolved query", id, variables);
|
|
103
99
|
data_cache.set(id, observer);
|
|
104
100
|
injectToStream?.(`
|
|
105
101
|
<script>
|
|
@@ -155,7 +151,6 @@ function usePageData({
|
|
|
155
151
|
}
|
|
156
152
|
|
|
157
153
|
|
|
158
|
-
console.log('clearing ssr signal', artifactName)
|
|
159
154
|
// trigger the signal
|
|
160
155
|
window.__houdini__nav_caches__.ssr_signals.get(artifactName).resolve()
|
|
161
156
|
window.__houdini__nav_caches__.ssr_signals.delete(artifactName)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "houdini-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.34",
|
|
4
4
|
"description": "The React plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"recast": "^0.23.1",
|
|
44
44
|
"rollup": "^3.7.4",
|
|
45
45
|
"use-deep-compare-effect": "^1.8.1",
|
|
46
|
-
"houdini": "^1.2.
|
|
46
|
+
"houdini": "^1.2.34"
|
|
47
47
|
},
|
|
48
48
|
"files": [
|
|
49
49
|
"build"
|