houdini-react 2.0.0-next.24 → 2.0.0-next.26

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.24",
3
+ "version": "2.0.0-next.26",
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.24",
85
- "houdini-react-darwin-arm64": "2.0.0-next.24",
86
- "houdini-react-linux-x64": "2.0.0-next.24",
87
- "houdini-react-linux-arm64": "2.0.0-next.24",
88
- "houdini-react-win32-x64": "2.0.0-next.24",
89
- "houdini-react-win32-arm64": "2.0.0-next.24"
84
+ "houdini-react-darwin-x64": "2.0.0-next.26",
85
+ "houdini-react-darwin-arm64": "2.0.0-next.26",
86
+ "houdini-react-linux-x64": "2.0.0-next.26",
87
+ "houdini-react-linux-arm64": "2.0.0-next.26",
88
+ "houdini-react-win32-x64": "2.0.0-next.26",
89
+ "houdini-react-win32-arm64": "2.0.0-next.26"
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.24'
8
+ const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.26'
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'
@@ -192,7 +192,7 @@ export function useDocumentHandle<
192
192
  storeValue,
193
193
  backwardPending,
194
194
  forwardPending,
195
- paginationObserver!.send,
195
+ paginationObserver,
196
196
  location.params,
197
197
  ])
198
198
  }
@@ -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) => {