houdini-react 2.0.0-next.24 → 2.0.0-next.25
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": "houdini-react",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.25",
|
|
4
4
|
"description": "The React plugin for houdini",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -81,12 +81,12 @@
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"optionalDependencies": {
|
|
84
|
-
"houdini-react-darwin-x64": "2.0.0-next.
|
|
85
|
-
"houdini-react-darwin-arm64": "2.0.0-next.
|
|
86
|
-
"houdini-react-linux-x64": "2.0.0-next.
|
|
87
|
-
"houdini-react-linux-arm64": "2.0.0-next.
|
|
88
|
-
"houdini-react-win32-x64": "2.0.0-next.
|
|
89
|
-
"houdini-react-win32-arm64": "2.0.0-next.
|
|
84
|
+
"houdini-react-darwin-x64": "2.0.0-next.25",
|
|
85
|
+
"houdini-react-darwin-arm64": "2.0.0-next.25",
|
|
86
|
+
"houdini-react-linux-x64": "2.0.0-next.25",
|
|
87
|
+
"houdini-react-linux-arm64": "2.0.0-next.25",
|
|
88
|
+
"houdini-react-win32-x64": "2.0.0-next.25",
|
|
89
|
+
"houdini-react-win32-arm64": "2.0.0-next.25"
|
|
90
90
|
},
|
|
91
91
|
"bin": "bin/houdini-react",
|
|
92
92
|
"scripts": {
|
package/postInstall.js
CHANGED
|
@@ -5,7 +5,7 @@ const https = require('https')
|
|
|
5
5
|
const child_process = require('child_process')
|
|
6
6
|
|
|
7
7
|
// Adjust the version you want to install. You can also make this dynamic.
|
|
8
|
-
const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.
|
|
8
|
+
const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.25'
|
|
9
9
|
|
|
10
10
|
// Windows binaries end with .exe so we need to special case them.
|
|
11
11
|
const binaryName = process.platform === 'win32' ? 'houdini-react.exe' : 'houdini-react'
|
|
@@ -222,6 +222,8 @@ function usePageData({
|
|
|
222
222
|
? data_cache.get(artifact.name)!
|
|
223
223
|
: client.observe({ artifact, cache })
|
|
224
224
|
|
|
225
|
+
// store the observer immediately so useQueryResult can access it
|
|
226
|
+
// during SSR rendering before the fetch resolves
|
|
225
227
|
let resolve: () => void = () => {}
|
|
226
228
|
let reject: (message: string) => void = () => {}
|
|
227
229
|
const promise = new Promise<void>((res, rej) => {
|
|
@@ -234,7 +236,6 @@ function usePageData({
|
|
|
234
236
|
session,
|
|
235
237
|
})
|
|
236
238
|
.then(async () => {
|
|
237
|
-
data_cache.set(id, observer)
|
|
238
239
|
|
|
239
240
|
// if there is an error, we need to reject the promise
|
|
240
241
|
if (observer.state.errors && observer.state.errors.length > 0) {
|