@holo-js/adapter-next 0.3.6 → 0.3.7

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/realtime.mjs CHANGED
@@ -182,7 +182,10 @@ function useReactiveRealtimeQuery(definition, args) {
182
182
  getSnapshot,
183
183
  getSnapshot
184
184
  );
185
- return snapshot?.data;
185
+ if (!snapshot) {
186
+ return use(store.load()).data;
187
+ }
188
+ return snapshot.data;
186
189
  }
187
190
  if (isBrowserRuntime()) {
188
191
  configureRealtimeClientRuntime({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holo-js/adapter-next",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Holo-JS Framework - Next.js adapter",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -43,13 +43,13 @@
43
43
  "test": "vitest --run"
44
44
  },
45
45
  "dependencies": {
46
- "@holo-js/adapter-shared": "^0.3.6",
47
- "@holo-js/config": "^0.3.6",
48
- "@holo-js/core": "^0.3.6"
46
+ "@holo-js/adapter-shared": "^0.3.7",
47
+ "@holo-js/config": "^0.3.7",
48
+ "@holo-js/core": "^0.3.7"
49
49
  },
50
50
  "peerDependencies": {
51
- "@holo-js/forms": "^0.3.6",
52
- "@holo-js/realtime": "^0.3.6",
51
+ "@holo-js/forms": "^0.3.7",
52
+ "@holo-js/realtime": "^0.3.7",
53
53
  "next": "^16.2.4",
54
54
  "react": "^19.2.6"
55
55
  },
@@ -62,7 +62,7 @@
62
62
  }
63
63
  },
64
64
  "devDependencies": {
65
- "@holo-js/realtime": "^0.3.6",
65
+ "@holo-js/realtime": "^0.3.7",
66
66
  "@types/node": "^22.10.2",
67
67
  "next": "^16.2.4",
68
68
  "tsup": "^8.3.5",