@quintype/framework 7.34.5-react-upgrade-v19.13 → 7.34.5-react-upgrade-v19.15
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/.circleci/config.yml +1 -1
- package/client/start.js +8 -3
- package/package.json +2 -3
- package/.claude/settings.local.json +0 -10
package/.circleci/config.yml
CHANGED
package/client/start.js
CHANGED
|
@@ -12,7 +12,7 @@ import { BreakingNews, CLIENT_SIDE_RENDERED, NAVIGATE_TO_PAGE, PAGE_LOADING } fr
|
|
|
12
12
|
import { createBrowserHistory } from "history";
|
|
13
13
|
import get from "lodash/get";
|
|
14
14
|
import React from "react";
|
|
15
|
-
import
|
|
15
|
+
import { createRoot, hydrateRoot } from "react-dom/client";
|
|
16
16
|
import { Provider } from "react-redux";
|
|
17
17
|
import { IsomorphicComponent } from "../isomorphic/component";
|
|
18
18
|
import { makePickComponentSync } from "../isomorphic/impl/make-pick-component-sync";
|
|
@@ -202,9 +202,14 @@ export function renderComponent(clazz, container, store, props = {}, callback) {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
if (props.hydrate) {
|
|
205
|
-
|
|
205
|
+
const root = hydrateRoot(containerEle, component);
|
|
206
|
+
if (callback) queueMicrotask(callback);
|
|
207
|
+
return root;
|
|
206
208
|
}
|
|
207
|
-
|
|
209
|
+
const root = createRoot(containerEle);
|
|
210
|
+
root.render(component);
|
|
211
|
+
if (callback) queueMicrotask(callback);
|
|
212
|
+
return root;
|
|
208
213
|
}
|
|
209
214
|
|
|
210
215
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quintype/framework",
|
|
3
|
-
"version": "7.34.5-react-upgrade-v19.
|
|
3
|
+
"version": "7.34.5-react-upgrade-v19.15",
|
|
4
4
|
"description": "Libraries to help build Quintype Node.js apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"@grpc/grpc-js": "^1.12.5",
|
|
35
35
|
"@jsdoc/salty": "^0.2.9",
|
|
36
36
|
"@quintype/amp": "^2.22.1-version-upgrade.1",
|
|
37
|
-
"@quintype/arrow": "^3.53.6",
|
|
38
37
|
"@quintype/backend": "^2.7.1-version-upgrade.0",
|
|
39
38
|
"@quintype/components": "^3.8.8-only-react-v19.4",
|
|
40
39
|
"@quintype/prerender-node": "^3.2.26",
|
|
@@ -68,7 +67,7 @@
|
|
|
68
67
|
"@babel/eslint-parser": "^7.15.7",
|
|
69
68
|
"@loadable/component": "^5.15.0",
|
|
70
69
|
"@loadable/server": "^5.15.1",
|
|
71
|
-
"@quintype/build": "^4.0.2-beta.
|
|
70
|
+
"@quintype/build": "^4.0.2-beta.1",
|
|
72
71
|
"babel-plugin-quintype-assets": "^1.1.1",
|
|
73
72
|
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
|
|
74
73
|
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|