@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.
- package/client/start.js +3 -8
- 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
|
|
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
|
-
|
|
205
|
-
if (typeof callback === "function") callback();
|
|
206
|
-
return root;
|
|
204
|
+
return ReactDOM.hydrate(component, containerEle, callback);
|
|
207
205
|
}
|
|
208
|
-
|
|
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
|
/**
|