@trackunit/react-core-hooks 1.3.141 → 1.3.144
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 +5 -5
package/index.cjs.js
CHANGED
|
@@ -1062,7 +1062,7 @@ function useTextSearch(items, props) {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
return sharedUtils.filterByMultiple(items, props, searchText);
|
|
1064
1064
|
}, [items, props, searchText]);
|
|
1065
|
-
return [result, searchText, setSearchText];
|
|
1065
|
+
return react.useMemo(() => [result, searchText, setSearchText], [result, searchText, setSearchText]);
|
|
1066
1066
|
}
|
|
1067
1067
|
|
|
1068
1068
|
const WidgetConfigContext = react.createContext(null);
|
package/index.esm.js
CHANGED
|
@@ -1060,7 +1060,7 @@ function useTextSearch(items, props) {
|
|
|
1060
1060
|
}
|
|
1061
1061
|
return filterByMultiple(items, props, searchText);
|
|
1062
1062
|
}, [items, props, searchText]);
|
|
1063
|
-
return [result, searchText, setSearchText];
|
|
1063
|
+
return useMemo(() => [result, searchText, setSearchText], [result, searchText, setSearchText]);
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
1066
|
const WidgetConfigContext = createContext(null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-core-hooks",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.144",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"react": "19.0.0",
|
|
11
11
|
"jest-fetch-mock": "^3.0.3",
|
|
12
12
|
"zod": "3.23.4",
|
|
13
|
-
"@trackunit/react-core-contexts-api": "1.4.
|
|
14
|
-
"@trackunit/iris-app-runtime-core": "1.4.
|
|
15
|
-
"@trackunit/shared-utils": "1.5.
|
|
13
|
+
"@trackunit/react-core-contexts-api": "1.4.139",
|
|
14
|
+
"@trackunit/iris-app-runtime-core": "1.4.142",
|
|
15
|
+
"@trackunit/shared-utils": "1.5.132",
|
|
16
16
|
"@tanstack/react-router": "1.114.29",
|
|
17
|
-
"@trackunit/react-test-setup": "1.0.
|
|
17
|
+
"@trackunit/react-test-setup": "1.0.22"
|
|
18
18
|
},
|
|
19
19
|
"module": "./index.esm.js",
|
|
20
20
|
"main": "./index.cjs.js",
|