@shopify/react-html
Advanced tools
Comparing version 8.0.5 to 8.0.6
@@ -13,4 +13,10 @@ # Changelog | ||
- useServerDomEffect now returns a result ([#636](https://github.com/Shopify/quilt/pull/636)) | ||
## 8.0.6 - 2019-04-15 | ||
- The render of your app performed by the `Html` component now provides the `HtmlManager` instance, allowing it to access the serializations built up during `extract()` ([#655](https://github.com/Shopify/quilt/pull/655)) | ||
## 8.0.4 - 2019-04-12 | ||
- `useServerDomEffect` now returns a result ([#636](https://github.com/Shopify/quilt/pull/636)) | ||
## 8.0.3 - 2019-04-09 | ||
@@ -17,0 +23,0 @@ |
@@ -7,2 +7,3 @@ "use strict"; | ||
var components_1 = require("../../components"); | ||
var context_1 = require("../../context"); | ||
var utilities_1 = require("../../utilities"); | ||
@@ -13,3 +14,3 @@ var Serialize_1 = tslib_1.__importDefault(require("./Serialize")); | ||
var _h; | ||
var markup = typeof children === 'string' ? children : server_1.renderToString(children); | ||
var markup = typeof children === 'string' ? children : render(children, manager); | ||
var extracted = manager && manager.extract(); | ||
@@ -68,1 +69,5 @@ var serializationMarkup = extracted | ||
exports.default = Html; | ||
function render(app, manager) { | ||
var content = manager == null ? (app) : (React.createElement(context_1.HtmlContext.Provider, { value: manager }, app)); | ||
return server_1.renderToString(content); | ||
} |
{ | ||
"name": "@shopify/react-html", | ||
"version": "8.0.5", | ||
"version": "8.0.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A component to render your react app with no static HTML.", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
98708
2103