houdini-react 2.0.0-next.37 → 2.0.0-next.38

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.37",
3
+ "version": "2.0.0-next.38",
4
4
  "description": "The React plugin for houdini",
5
5
  "keywords": [
6
6
  "typescript",
@@ -81,13 +81,13 @@
81
81
  }
82
82
  },
83
83
  "optionalDependencies": {
84
- "houdini-react-darwin-x64": "2.0.0-next.37",
85
- "houdini-react-darwin-arm64": "2.0.0-next.37",
86
- "houdini-react-linux-x64": "2.0.0-next.37",
87
- "houdini-react-linux-arm64": "2.0.0-next.37",
88
- "houdini-react-win32-x64": "2.0.0-next.37",
89
- "houdini-react-win32-arm64": "2.0.0-next.37",
90
- "houdini-react-wasm": "2.0.0-next.37"
84
+ "houdini-react-darwin-x64": "2.0.0-next.38",
85
+ "houdini-react-darwin-arm64": "2.0.0-next.38",
86
+ "houdini-react-linux-x64": "2.0.0-next.38",
87
+ "houdini-react-linux-arm64": "2.0.0-next.38",
88
+ "houdini-react-win32-x64": "2.0.0-next.38",
89
+ "houdini-react-win32-arm64": "2.0.0-next.38",
90
+ "houdini-react-wasm": "2.0.0-next.38"
91
91
  },
92
92
  "scripts": {
93
93
  "compile": "scripts build-go",
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.37'
8
+ const BINARY_DISTRIBUTION_VERSION = '2.0.0-next.38'
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'
@@ -135,7 +135,7 @@ export function useQueryHandle<
135
135
  suspenseUnit.resolved = {
136
136
  ...handle,
137
137
  data: value.data,
138
- partia: value.partial,
138
+ partial: value.partial,
139
139
  artifact,
140
140
  } as unknown as DocumentHandle<QueryArtifact, _Data, _Input>
141
141
 
@@ -760,8 +760,12 @@ function usePreload({ preload }: { preload: (url: string, which: PreloadWhichVal
760
760
  return
761
761
  }
762
762
 
763
- // if the anchor doesn't allow for preloading, don't do anything
764
- const preloadWhichRaw = anchor.attributes.getNamedItem('data-houdini-preload')?.value
763
+ // if the anchor doesn't explicitly opt in to preloading, don't do anything
764
+ const preloadAttr = anchor.attributes.getNamedItem('data-houdini-preload')
765
+ if (!preloadAttr) {
766
+ return
767
+ }
768
+ const preloadWhichRaw = preloadAttr.value
765
769
  const preloadWhich: PreloadWhichValue =
766
770
  !preloadWhichRaw || preloadWhichRaw === 'true'
767
771
  ? 'page'