Skip to content

Commit cfc0b41

Browse files
authored
remove warning about SingletonHooksContainer unmount (#324)
1 parent 7cbb7b6 commit cfc0b41

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-singleton-hook",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "Share custom hook state across all components",
55
"keywords": [
66
"react",

src/components/SingletonHooksContainer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export const SingletonHooksContainer = () => {
2020
+ 'Alternatively, dont use SingletonHooksContainer it at all, we will handle that for you.');
2121
}
2222
SingletonHooksContainerMounted = true;
23-
return () => process.env.NODE_ENV !== 'test' && warning('SingletonHooksContainer is removed from DOM. its not supported, singleton hooks will stop updating.');
2423
}, []);
2524

2625
const [hooks, setHooks] = useState([]);

0 commit comments

Comments
 (0)