@emotion/utils
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -17,3 +17,3 @@ 'use strict'; | ||
} | ||
var insertStyles = function insertStyles(context, insertable, shouldHydrate) { | ||
var insertStyles = function insertStyles(context, insertable, hydrationRender) { | ||
if (insertable.type === 1 && context.registered["css-" + insertable.name] === undefined) { | ||
@@ -31,3 +31,3 @@ context.registered["css-" + insertable.name] = insertable.styles; | ||
if (isBrowser) { | ||
if (isBrowser && hydrationRender === false) { | ||
rules.forEach(_ref); | ||
@@ -34,0 +34,0 @@ } |
@@ -13,3 +13,3 @@ var isBrowser = typeof document !== 'undefined'; | ||
} | ||
var insertStyles = function insertStyles(context, insertable, shouldHydrate) { | ||
var insertStyles = function insertStyles(context, insertable, hydrationRender) { | ||
if (insertable.type === 1 && context.registered["css-" + insertable.name] === undefined) { | ||
@@ -27,3 +27,3 @@ context.registered["css-" + insertable.name] = insertable.styles; | ||
if (isBrowser) { | ||
if (isBrowser && hydrationRender === false) { | ||
rules.forEach(_ref); | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "@emotion/utils", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "internal utils for emotion", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
@@ -26,3 +26,3 @@ // @flow | ||
insertable: InsertableStyles, | ||
shouldHydrate: boolean | ||
hydrationRender: boolean | ||
) => { | ||
@@ -41,3 +41,3 @@ if ( | ||
context.inserted[insertable.name] = rules.join('') | ||
if (isBrowser) { | ||
if (isBrowser && hydrationRender === false) { | ||
rules.forEach(rule => { | ||
@@ -44,0 +44,0 @@ context.sheet.insert(rule) |
Sorry, the diff of this file is not supported yet
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
9210