@quintype/framework 7.34.5-react-upgrade-v19.1 → 7.34.5-react-upgrade-v19.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.
Files changed (2) hide show
  1. package/client/start.js +3 -8
  2. package/package.json +1 -1
package/client/start.js CHANGED
@@ -11,7 +11,7 @@ import { BreakingNews, CLIENT_SIDE_RENDERED, NAVIGATE_TO_PAGE, PAGE_LOADING } fr
11
11
  import { createBrowserHistory } from "history";
12
12
  import get from "lodash/get";
13
13
  import React from "react";
14
- import { createRoot, hydrateRoot } from "react-dom/client";
14
+ import ReactDOM from "react-dom";
15
15
  import { Provider } from "react-redux";
16
16
  import { IsomorphicComponent } from "../isomorphic/component";
17
17
  import { makePickComponentSync } from "../isomorphic/impl/make-pick-component-sync";
@@ -201,14 +201,9 @@ export function renderComponent(clazz, container, store, props = {}, callback) {
201
201
  }
202
202
 
203
203
  if (props.hydrate) {
204
- const root = hydrateRoot(containerEle, component);
205
- if (typeof callback === "function") callback();
206
- return root;
204
+ return ReactDOM.hydrate(component, containerEle, callback);
207
205
  }
208
- const root = createRoot(containerEle);
209
- root.render(component);
210
- if (typeof callback === "function") callback();
211
- return root;
206
+ return ReactDOM.render(component, containerEle, callback);
212
207
  }
213
208
 
214
209
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.34.5-react-upgrade-v19.1",
3
+ "version": "7.34.5-react-upgrade-v19.2",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {