@primate/solid 0.12.0 → 0.12.2
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import root from "#client/root";
|
|
2
|
+
import { setRequest } from "#request/store";
|
|
2
3
|
import client from "@primate/core/client";
|
|
3
4
|
import SolidHead from "@primate/solid/Head";
|
|
4
5
|
import Root from "solid:root";
|
|
@@ -13,11 +14,11 @@ export default class SolidApp {
|
|
|
13
14
|
const mount = () => Root(root.toProps(data));
|
|
14
15
|
let dispose = root[data.ssr ? "ssr" : "csr"](mount, body);
|
|
15
16
|
if (data.csr) {
|
|
16
|
-
const start = () => client.boot((_data, update) => {
|
|
17
|
+
const start = () => client.boot("solid", (_data, update) => {
|
|
17
18
|
dispose();
|
|
18
19
|
dispose = root.csr(() => Root(root.toProps(_data, update)), body);
|
|
19
20
|
update?.();
|
|
20
|
-
});
|
|
21
|
+
}, (url, query) => setRequest(value => ({ ...value, query, url })));
|
|
21
22
|
if (document.readyState === "loading") {
|
|
22
23
|
window.addEventListener("DOMContentLoaded", start, { once: true });
|
|
23
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primate/solid",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "SolidJS for Primate",
|
|
5
5
|
"homepage": "https://primate.run/docs/frontend/solid",
|
|
6
6
|
"bugs": "https://github.com/primate-run/primate/issues",
|
|
@@ -23,13 +23,13 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@babel/core": "^7.29.7",
|
|
26
|
+
"@primate/core": "^0.9.28",
|
|
26
27
|
"@rcompat/runtime": "^0.17.0",
|
|
27
|
-
"babel-preset-solid": "^1.9.12"
|
|
28
|
-
"@primate/core": "^0.9.0"
|
|
28
|
+
"babel-preset-solid": "^1.9.12"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"primate": "^0.40.1",
|
|
32
|
+
"solid-js": "1"
|
|
33
33
|
},
|
|
34
34
|
"imports": {
|
|
35
35
|
"#*": {
|