@tramvai/state 1.99.1 → 1.101.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/lib/index.es.js +3 -3
- package/lib/index.js +3 -3
- package/package.json +2 -2
package/lib/index.es.js
CHANGED
|
@@ -654,8 +654,8 @@ class Subscription {
|
|
|
654
654
|
}
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
const ConnectContext = createContext(null);
|
|
658
|
-
const ServerStateContext = createContext(null);
|
|
657
|
+
const ConnectContext = /* #__PURE__*/ createContext(null);
|
|
658
|
+
const ServerStateContext = /* #__PURE__*/ createContext(null);
|
|
659
659
|
|
|
660
660
|
const useConsumerContext = () => {
|
|
661
661
|
const context = useContext(ConnectContext);
|
|
@@ -718,7 +718,7 @@ function scheduling() {
|
|
|
718
718
|
return setTimeout;
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
-
const schedule = scheduling();
|
|
721
|
+
const schedule = /* #__PURE__*/ scheduling();
|
|
722
722
|
function useSelector(storesOrStore, selector, equalityFn = shallowEqual) {
|
|
723
723
|
invariant(selector, `You must pass a selector to useSelectors`);
|
|
724
724
|
const context = useConsumerContext();
|
package/lib/index.js
CHANGED
|
@@ -676,8 +676,8 @@ class Subscription {
|
|
|
676
676
|
}
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
const ConnectContext = React.createContext(null);
|
|
680
|
-
const ServerStateContext = React.createContext(null);
|
|
679
|
+
const ConnectContext = /* #__PURE__*/ React.createContext(null);
|
|
680
|
+
const ServerStateContext = /* #__PURE__*/ React.createContext(null);
|
|
681
681
|
|
|
682
682
|
const useConsumerContext = () => {
|
|
683
683
|
const context = React.useContext(ConnectContext);
|
|
@@ -740,7 +740,7 @@ function scheduling() {
|
|
|
740
740
|
return setTimeout;
|
|
741
741
|
}
|
|
742
742
|
|
|
743
|
-
const schedule = scheduling();
|
|
743
|
+
const schedule = /* #__PURE__*/ scheduling();
|
|
744
744
|
function useSelector(storesOrStore, selector, equalityFn = shallowEqual__default["default"]) {
|
|
745
745
|
invariant__default["default"](selector, `You must pass a selector to useSelectors`);
|
|
746
746
|
const context = useConsumerContext();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/state",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.101.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@tinkoff/react-hooks": "0.0.24",
|
|
22
22
|
"@tinkoff/utils": "^2.1.2",
|
|
23
|
-
"@tramvai/types-actions-state-context": "1.
|
|
23
|
+
"@tramvai/types-actions-state-context": "1.101.4",
|
|
24
24
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
25
25
|
"invariant": "^2.2.4",
|
|
26
26
|
"react-is": ">=17",
|