@storystick/react 0.2.0-rc.4 → 0.2.0-rc.6
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/dist/.source-hash +1 -1
- package/dist/use-generated-query.js +6 -1
- package/package.json +3 -3
package/dist/.source-hash
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
353d7b8f246c83216b28d05c27361ee10632bc5776be8a75404a22d7053703d3
|
|
@@ -93,6 +93,9 @@ export function useQuery(executableQuery, options = {}) {
|
|
|
93
93
|
initialData: currentInitialResult,
|
|
94
94
|
// A seed is not a fresh browser read and carries no query receipt.
|
|
95
95
|
initialDataUpdatedAt: 0,
|
|
96
|
+
// Transport proofs live in WeakMaps. Deep-sharing an HTTP result with
|
|
97
|
+
// an SSR seed would keep equal JSON but discard the fresh read receipt.
|
|
98
|
+
structuralSharing: false,
|
|
96
99
|
retry: false,
|
|
97
100
|
staleTime: Infinity,
|
|
98
101
|
gcTime: 5 * 60 * 1_000,
|
|
@@ -245,7 +248,9 @@ export function useQuery(executableQuery, options = {}) {
|
|
|
245
248
|
return result;
|
|
246
249
|
}
|
|
247
250
|
function previewAuthorityMatchesState(authority, owner, state) {
|
|
248
|
-
|
|
251
|
+
// The authenticated HTTP client is also used before session convergence
|
|
252
|
+
// (for example to load schemas). Query V2 needs the exact read context too.
|
|
253
|
+
if (!state.sessionId || !state.previewToken || !state.readContext)
|
|
249
254
|
return false;
|
|
250
255
|
return clientMatchesPreviewAuthority(authority, {
|
|
251
256
|
projectId: owner.projectId,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storystick/react",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.6",
|
|
4
4
|
"license": "FSL-1.1-MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -117,9 +117,9 @@
|
|
|
117
117
|
"@tanstack/query-core": "5.101.4",
|
|
118
118
|
"@base-ui/react": "1.3.0",
|
|
119
119
|
"@storystick/client": "0.2.0-rc.4",
|
|
120
|
+
"@storystick/media": "0.2.0-rc.3",
|
|
120
121
|
"@storystick/types": "0.1.0-rc.3",
|
|
121
|
-
"@storystick/preview": "0.2.0-rc.4"
|
|
122
|
-
"@storystick/media": "0.2.0-rc.3"
|
|
122
|
+
"@storystick/preview": "0.2.0-rc.4"
|
|
123
123
|
},
|
|
124
124
|
"peerDependencies": {
|
|
125
125
|
"react": "^19.2.8",
|