ydb-embedded-ui 3.2.1 → 3.2.2
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/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
|
48
|
+
const tablets = useMemo(() => data?.TabletStateInfo || [], [data]);
|
49
49
|
|
50
50
|
const fetchData = useCallback(
|
51
51
|
(isBackground) => {
|