Comparing version 20.2.0 to 20.3.0
# CHANGELOG | ||
## 20.3.0 | ||
New function `setAllowInvalidateStyles` which allows to speed up app startup by lowering number of rebuilding styles. | ||
## 20.2.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "bobril", | ||
"version": "20.2.0", | ||
"version": "20.3.0", | ||
"description": "Component Oriented MVC Framework with virtual DOM and CSS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -732,3 +732,10 @@ import { CSSStyles, CSSPseudoStyles, CSSStylesItem, CSSInlineStyles } from "./cssTypes"; | ||
let allowInvalidateStyles = true; | ||
export function setAllowInvalidateStyles(value: boolean) { | ||
allowInvalidateStyles = value; | ||
} | ||
export function invalidateStyles(): void { | ||
if (!allowInvalidateStyles) return; | ||
rebuildStyles = true; | ||
@@ -735,0 +742,0 @@ invalidate(); |
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
391221
9307