@ray-js/ipc-player-integration 0.0.43-beta.3 → 0.0.45-beta.1

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.
@@ -20,9 +20,11 @@ export const TempHumidity = props => {
20
20
  const humidity = useHumidity(devId);
21
21
  const ec = useEc(devId);
22
22
  const waterTemp = useWaterTemperature(devId);
23
+ // 稳定 dpCodes 引用,避免每次渲染都生成新数组导致 useDpSupport 内 getDeviceInfo 被反复触发
24
+ const dpCodes = useMemo(() => [...DP_CODES], []);
23
25
  const dpSupport = useDpSupport({
24
26
  devId,
25
- dpCodes: [...DP_CODES]
27
+ dpCodes
26
28
  });
27
29
  const items = useMemo(() => {
28
30
  const list = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.43-beta.3",
3
+ "version": "0.0.45-beta.1",
4
4
  "description": "IPC 融合播放器",
5
5
  "main": "lib/index",
6
6
  "files": [
@@ -38,7 +38,7 @@
38
38
  "@ray-js/direction-control": "^0.0.8",
39
39
  "@ray-js/ipc-ptz-zoom": "^0.0.3",
40
40
  "@ray-js/ray-ipc-player": "^2.1.3",
41
- "@ray-js/ray-ipc-utils": "^1.1.15",
41
+ "@ray-js/ray-ipc-utils": "^1.1.16",
42
42
  "@ray-js/svg": "0.2.0",
43
43
  "clsx": "^1.2.1",
44
44
  "color": "^5.0.2",