@trackunit/react-components 1.8.30 → 1.8.32
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +7 -7
package/index.cjs.js
CHANGED
|
@@ -1296,7 +1296,7 @@ const useElevatedReducer = (reducer, initialState, customState) => {
|
|
|
1296
1296
|
*/
|
|
1297
1297
|
const useElevatedState = (initialState, customState) => {
|
|
1298
1298
|
const fallbackState = react.useState(initialState);
|
|
1299
|
-
return customState ?? fallbackState;
|
|
1299
|
+
return react.useMemo(() => customState ?? fallbackState, [customState, fallbackState]);
|
|
1300
1300
|
};
|
|
1301
1301
|
|
|
1302
1302
|
/**
|
package/index.esm.js
CHANGED
|
@@ -1294,7 +1294,7 @@ const useElevatedReducer = (reducer, initialState, customState) => {
|
|
|
1294
1294
|
*/
|
|
1295
1295
|
const useElevatedState = (initialState, customState) => {
|
|
1296
1296
|
const fallbackState = useState(initialState);
|
|
1297
|
-
return customState ?? fallbackState;
|
|
1297
|
+
return useMemo(() => customState ?? fallbackState, [customState, fallbackState]);
|
|
1298
1298
|
};
|
|
1299
1299
|
|
|
1300
1300
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-components",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.32",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
"@floating-ui/react": "^0.26.25",
|
|
18
18
|
"string-ts": "^2.0.0",
|
|
19
19
|
"tailwind-merge": "^2.0.0",
|
|
20
|
-
"@trackunit/ui-design-tokens": "1.6.
|
|
21
|
-
"@trackunit/css-class-variance-utilities": "1.6.
|
|
22
|
-
"@trackunit/shared-utils": "1.8.
|
|
23
|
-
"@trackunit/ui-icons": "1.6.
|
|
24
|
-
"@trackunit/react-table-pagination": "1.6.
|
|
25
|
-
"@trackunit/react-test-setup": "1.3.
|
|
20
|
+
"@trackunit/ui-design-tokens": "1.6.58",
|
|
21
|
+
"@trackunit/css-class-variance-utilities": "1.6.56",
|
|
22
|
+
"@trackunit/shared-utils": "1.8.57",
|
|
23
|
+
"@trackunit/ui-icons": "1.6.55",
|
|
24
|
+
"@trackunit/react-table-pagination": "1.6.55",
|
|
25
|
+
"@trackunit/react-test-setup": "1.3.56",
|
|
26
26
|
"@tanstack/react-router": "1.114.29"
|
|
27
27
|
},
|
|
28
28
|
"module": "./index.esm.js",
|