@folklore/hooks 0.0.72 → 0.0.73
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/cjs.js +3 -0
- package/dist/es.js +3 -0
- package/package.json +2 -2
package/dist/cjs.js
CHANGED
|
@@ -514,6 +514,9 @@ function useObserver(Observer) {
|
|
|
514
514
|
const currentElement = react.useRef(null);
|
|
515
515
|
const elementChanged = nodeRef.current !== currentElement.current;
|
|
516
516
|
react.useEffect(() => {
|
|
517
|
+
if (disabled) {
|
|
518
|
+
return () => {};
|
|
519
|
+
}
|
|
517
520
|
const {
|
|
518
521
|
current: nodeElement
|
|
519
522
|
} = nodeRef;
|
package/dist/es.js
CHANGED
|
@@ -512,6 +512,9 @@ function useObserver(Observer) {
|
|
|
512
512
|
const currentElement = useRef(null);
|
|
513
513
|
const elementChanged = nodeRef.current !== currentElement.current;
|
|
514
514
|
useEffect(() => {
|
|
515
|
+
if (disabled) {
|
|
516
|
+
return () => {};
|
|
517
|
+
}
|
|
515
518
|
const {
|
|
516
519
|
current: nodeElement
|
|
517
520
|
} = nodeRef;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@folklore/hooks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.73",
|
|
4
4
|
"description": "React hooks",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "6879f02e1991265ab2248de470fbf8e1240483a9",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@folklore/events": "^0.0.6",
|
|
55
55
|
"@folklore/services": "^0.1.43",
|