@tramvai/state 5.40.0 → 5.41.2

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.
@@ -84,8 +84,8 @@ pure = true,
84
84
  // and values needed to control behavior (forwarded refs, alternate context instances).
85
85
  // To maintain the wrapperProps object reference, memoize this destructuring.
86
86
  // eslint-disable-next-line no-shadow
87
- const { forwardedRef, ...wrapperProps } = props;
88
- return [forwardedRef, wrapperProps];
87
+ const { forwardedRef: innerForwardedRef, ...innerWrapperProps } = props;
88
+ return [innerForwardedRef, innerWrapperProps];
89
89
  }, [props]);
90
90
  // Retrieve the store and ancestor subscription via context, if available
91
91
  const contextValue = useConsumerContext();
@@ -95,8 +95,8 @@ pure = true,
95
95
  // and values needed to control behavior (forwarded refs, alternate context instances).
96
96
  // To maintain the wrapperProps object reference, memoize this destructuring.
97
97
  // eslint-disable-next-line no-shadow
98
- const { forwardedRef, ...wrapperProps } = props;
99
- return [forwardedRef, wrapperProps];
98
+ const { forwardedRef: innerForwardedRef, ...innerWrapperProps } = props;
99
+ return [innerForwardedRef, innerWrapperProps];
100
100
  }, [props]);
101
101
  // Retrieve the store and ancestor subscription via context, if available
102
102
  const contextValue = useConsumerContext.useConsumerContext();
@@ -23,6 +23,7 @@ function useSelector(storesOrStore, selector, equalityFn = shallowEqual) {
23
23
  const storeName = typeof store === 'string' ? store : store.storeName;
24
24
  const exists = context.hasStore(store);
25
25
  if (!exists) {
26
+ // eslint-disable-next-line no-console
26
27
  console.warn(`
27
28
  The store "${storeName}" has been used, but not registered via COMBINE_REDUCERS token.
28
29
  Have you forgot to register it? Note, that we are registering it for you to make things just work.
@@ -33,6 +33,7 @@ function useSelector(storesOrStore, selector, equalityFn = shallowEqual__default
33
33
  const storeName = typeof store === 'string' ? store : store.storeName;
34
34
  const exists = context$1.hasStore(store);
35
35
  if (!exists) {
36
+ // eslint-disable-next-line no-console
36
37
  console.warn(`
37
38
  The store "${storeName}" has been used, but not registered via COMBINE_REDUCERS token.
38
39
  Have you forgot to register it? Note, that we are registering it for you to make things just work.
@@ -13,6 +13,7 @@ function useStore(reducer) {
13
13
  // и сохраняем в `addedReducerRef`, что бы удалить при unmount
14
14
  if (!context.hasStore(reducer)) {
15
15
  if (process.env.NODE_ENV === 'development') {
16
+ // eslint-disable-next-line no-console
16
17
  console.warn(`
17
18
  The store "${reducer.storeName}" has been used, but not registered via COMBINE_REDUCERS token.
18
19
  Have you forgot to register it? Note, that we are registering it for you to make things just work.
@@ -17,6 +17,7 @@ function useStore(reducer) {
17
17
  // и сохраняем в `addedReducerRef`, что бы удалить при unmount
18
18
  if (!context$1.hasStore(reducer)) {
19
19
  if (process.env.NODE_ENV === 'development') {
20
+ // eslint-disable-next-line no-console
20
21
  console.warn(`
21
22
  The store "${reducer.storeName}" has been used, but not registered via COMBINE_REDUCERS token.
22
23
  Have you forgot to register it? Note, that we are registering it for you to make things just work.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/state",
3
- "version": "5.40.0",
3
+ "version": "5.41.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@tinkoff/react-hooks": "0.4.2",
21
21
  "@tinkoff/utils": "^2.1.2",
22
- "@tramvai/types-actions-state-context": "5.40.0",
22
+ "@tramvai/types-actions-state-context": "5.41.2",
23
23
  "@types/hoist-non-react-statics": "^3.3.1",
24
24
  "invariant": "^2.2.4",
25
25
  "react-is": ">=17",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@reatom/core": "^1.1.5",
37
- "@tramvai/core": "5.40.0",
37
+ "@tramvai/core": "5.41.2",
38
38
  "@types/invariant": "^2.2.31",
39
39
  "@types/react-is": "^17.0.0",
40
40
  "@types/use-sync-external-store": "^0.0.3",