use-subscription 1.10.0-canary-cb151849e1-20240424 → 1.10.0-rc-915b914b3a-20240515
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.
|
@@ -12,10 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
if (process.env.NODE_ENV !== "production") {
|
|
14
14
|
(function() {
|
|
15
|
-
|
|
16
|
-
'use strict';
|
|
17
|
-
|
|
18
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
15
|
+
'use strict';
|
|
19
16
|
if (
|
|
20
17
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
21
18
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
|
|
@@ -23,7 +20,7 @@ if (
|
|
|
23
20
|
) {
|
|
24
21
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
25
22
|
}
|
|
26
|
-
|
|
23
|
+
var shim = require('use-sync-external-store/shim');
|
|
27
24
|
|
|
28
25
|
//
|
|
29
26
|
// In order to avoid removing and re-adding subscriptions each time this hook is called,
|
|
@@ -38,7 +35,6 @@ function useSubscription(_ref) {
|
|
|
38
35
|
}
|
|
39
36
|
|
|
40
37
|
exports.useSubscription = useSubscription;
|
|
41
|
-
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
42
38
|
if (
|
|
43
39
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
|
|
44
40
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
|
|
@@ -46,6 +42,6 @@ if (
|
|
|
46
42
|
) {
|
|
47
43
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
48
44
|
}
|
|
49
|
-
|
|
45
|
+
|
|
50
46
|
})();
|
|
51
47
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "use-subscription",
|
|
3
3
|
"description": "Reusable hooks",
|
|
4
|
-
"version": "1.10.0-
|
|
4
|
+
"version": "1.10.0-rc-915b914b3a-20240515",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/facebook/react.git",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"license": "MIT",
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"react": "19.0.0-
|
|
18
|
+
"react": "19.0.0-rc-915b914b3a-20240515"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"rxjs": "^5.5.6"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"use-sync-external-store": "1.4.0-
|
|
24
|
+
"use-sync-external-store": "1.4.0-rc-915b914b3a-20240515"
|
|
25
25
|
}
|
|
26
26
|
}
|