reactive-box
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "reactive-box", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Minimalistic, fast, and highly efficient reactivity", | ||
@@ -47,3 +47,3 @@ "scripts": { | ||
"homepage": "https://github.com/betula/reactive-box#readme", | ||
"gitHead": "eec22f5b1b7bbe4c0205793f02759aedf8889d97" | ||
"gitHead": "8df18f1edaebd4406064cb2dae69bcb9098cb52a" | ||
} |
@@ -31,6 +31,6 @@ [![npm version](https://img.shields.io/npm/v/reactive-box?style=flat-square)](https://www.npmjs.com/package/reactive-box) [![bundle size](https://img.shields.io/bundlephobia/minzip/reactive-box?style=flat-square)](https://bundlephobia.com/result?p=reactive-box) [![code coverage](https://img.shields.io/coveralls/github/betula/reactive-box?style=flat-square)](https://coveralls.io/github/betula/reactive-box) [![typescript supported](https://img.shields.io/npm/types/typescript?style=flat-square)](./src/main.d.ts) | ||
const ref = React.useRef<[T, () => void]>(); | ||
React.useEffect(() => ref.current![1], []); | ||
if (!ref.current) { | ||
ref.current = expr(Component, forceUpdate); | ||
} | ||
React.useEffect(() => ref.current![1], []); | ||
return ref.current[0](props); | ||
@@ -37,0 +37,0 @@ }); |
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