ydb-embedded-ui 3.2.1 → 3.2.2

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.2.2](https://github.com/ydb-platform/ydb-embedded-ui/compare/v3.2.1...v3.2.2) (2023-01-13)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **Tablets:** fix infinite rerender ([79b3c58](https://github.com/ydb-platform/ydb-embedded-ui/commit/79b3c58fb7c3ff7f123e111189b10f42c5272401))
9
+
3
10
  ## [3.2.1](https://github.com/ydb-platform/ydb-embedded-ui/compare/v3.2.0...v3.2.1) (2023-01-12)
4
11
 
5
12
 
@@ -1,4 +1,4 @@
1
- import {useCallback, useEffect, useState} from 'react';
1
+ import {useCallback, useEffect, useMemo, useState} from 'react';
2
2
  import {useDispatch} from 'react-redux';
3
3
  import cn from 'bem-cn-lite';
4
4
  import ReactList from 'react-list';
@@ -45,7 +45,7 @@ export const Tablets = ({path, nodeId, className}: TabletsProps) => {
45
45
  } = useTypedSelector((state) => state.tablets);
46
46
  const {autorefresh} = useTypedSelector((state) => state.schema);
47
47
 
48
- const {TabletStateInfo: tablets = []} = data;
48
+ const tablets = useMemo(() => data?.TabletStateInfo || [], [data]);
49
49
 
50
50
  const fetchData = useCallback(
51
51
  (isBackground) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "files": [
5
5
  "dist"
6
6
  ],