@times-components/ssr 2.43.13 → 2.43.14

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@times-components/ssr",
3
3
  "main": "src",
4
- "version": "2.43.13",
4
+ "version": "2.43.14",
5
5
  "scripts": {
6
6
  "bundle:dev": "yarn cleanup-dist && webpack --config=webpack.config.js",
7
7
  "bundle:prod": "yarn cleanup-dist && NODE_ENV=production webpack --config=webpack.config.js -p",
@@ -79,5 +79,5 @@
79
79
  "publishConfig": {
80
80
  "access": "public"
81
81
  },
82
- "gitHead": "b1a0a511c18f44917c60433dc5365315f97b3fca"
82
+ "gitHead": "baa4410bbba30b1c25a07e32a99b5ab00fedc255"
83
83
  }
@@ -44,7 +44,8 @@ if (window.nuk && window.nuk.ssr && window.nuk.article) {
44
44
  useGET: false,
45
45
  headers: {
46
46
  "x-new-topic-data-source": true
47
- }
47
+ },
48
+ zephrDivs
48
49
  };
49
50
 
50
51
  runClient(article, clientOptions, data);
@@ -86,5 +86,9 @@ module.exports = (component, clientOptions, data) => {
86
86
 
87
87
  const App = component(client, analyticsStream, data, {});
88
88
 
89
- ReactDOMClient.render(App, document.getElementById(clientOptions.rootTag));
89
+ if (clientOptions.zephrDivs && clientOptions.zephrDivs === true) {
90
+ ReactDOMClient.hydrate(App, document.getElementById(clientOptions.rootTag));
91
+ } else {
92
+ ReactDOMClient.render(App, document.getElementById(clientOptions.rootTag));
93
+ }
90
94
  };