rn-css 1.6.3 → 1.6.4
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/dist/styleComponent.js +1 -1
- package/package.json +1 -1
- package/src/styleComponent.tsx +1 -1
package/dist/styleComponent.js
CHANGED
|
@@ -57,8 +57,8 @@ const styled = (Component) => {
|
|
|
57
57
|
// When the style is not used anymore, we destroy it
|
|
58
58
|
return () => {
|
|
59
59
|
const style = styleMap[hash];
|
|
60
|
-
style.usages--;
|
|
61
60
|
setTimeout(() => {
|
|
61
|
+
style.usages--;
|
|
62
62
|
if (style.usages <= 0)
|
|
63
63
|
delete styleMap[hash];
|
|
64
64
|
}, 3000);
|
package/package.json
CHANGED
package/src/styleComponent.tsx
CHANGED
|
@@ -65,8 +65,8 @@ const styled = <Props, >(Component: React.ComponentType<Props>) => {
|
|
|
65
65
|
// When the style is not used anymore, we destroy it
|
|
66
66
|
return () => {
|
|
67
67
|
const style = styleMap[hash]
|
|
68
|
-
style.usages--
|
|
69
68
|
setTimeout(() => {
|
|
69
|
+
style.usages--
|
|
70
70
|
if (style.usages <= 0) delete styleMap[hash]
|
|
71
71
|
}, 3000)
|
|
72
72
|
}
|