@trackunit/react-date-and-time-hooks 1.17.24 → 1.19.5
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 -6
- package/index.esm.js +1 -6
- package/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -143,12 +143,7 @@ const useTimezone = ({ assetId } = {}) => {
|
|
|
143
143
|
}
|
|
144
144
|
return current;
|
|
145
145
|
}, [timeZonePreference, current, assetTimeZone]);
|
|
146
|
-
return {
|
|
147
|
-
current,
|
|
148
|
-
assetTimeZone,
|
|
149
|
-
preferred,
|
|
150
|
-
setCustomTimezone,
|
|
151
|
-
};
|
|
146
|
+
return react.useMemo(() => ({ current, assetTimeZone, preferred, setCustomTimezone }), [current, assetTimeZone, preferred, setCustomTimezone]);
|
|
152
147
|
};
|
|
153
148
|
|
|
154
149
|
/**
|
package/index.esm.js
CHANGED
|
@@ -141,12 +141,7 @@ const useTimezone = ({ assetId } = {}) => {
|
|
|
141
141
|
}
|
|
142
142
|
return current;
|
|
143
143
|
}, [timeZonePreference, current, assetTimeZone]);
|
|
144
|
-
return {
|
|
145
|
-
current,
|
|
146
|
-
assetTimeZone,
|
|
147
|
-
preferred,
|
|
148
|
-
setCustomTimezone,
|
|
149
|
-
};
|
|
144
|
+
return useMemo(() => ({ current, assetTimeZone, preferred, setCustomTimezone }), [current, assetTimeZone, preferred, setCustomTimezone]);
|
|
150
145
|
};
|
|
151
146
|
|
|
152
147
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-date-and-time-hooks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.5",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"@graphql-codegen/cli": "^5.0.3",
|
|
11
11
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
12
12
|
"zod": "^3.23.8",
|
|
13
|
-
"@trackunit/iris-app-api": "1.
|
|
14
|
-
"@trackunit/react-core-contexts-test": "1.
|
|
15
|
-
"@trackunit/date-and-time-utils": "1.11.
|
|
16
|
-
"@trackunit/shared-utils": "1.13.
|
|
17
|
-
"@trackunit/react-core-hooks": "1.
|
|
18
|
-
"@trackunit/react-components": "1.
|
|
19
|
-
"@trackunit/react-graphql-hooks": "1.
|
|
20
|
-
"@trackunit/iris-app-runtime-core-api": "1.
|
|
13
|
+
"@trackunit/iris-app-api": "1.16.3",
|
|
14
|
+
"@trackunit/react-core-contexts-test": "1.15.5",
|
|
15
|
+
"@trackunit/date-and-time-utils": "1.11.93",
|
|
16
|
+
"@trackunit/shared-utils": "1.13.91",
|
|
17
|
+
"@trackunit/react-core-hooks": "1.15.5",
|
|
18
|
+
"@trackunit/react-components": "1.21.5",
|
|
19
|
+
"@trackunit/react-graphql-hooks": "1.20.5",
|
|
20
|
+
"@trackunit/iris-app-runtime-core-api": "1.14.4"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
23
|
"react": "^19.0.0",
|