fix: clear instances when page hidden
This commit is contained in:
@@ -197,6 +197,7 @@ const TableRow: React.FC<
|
||||
const handleVisibilityChange = async () => {
|
||||
if (document.visibilityState === 'hidden') {
|
||||
cacheDataListRef.current = [];
|
||||
setChildrenData([]);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -218,10 +219,6 @@ const TableRow: React.FC<
|
||||
};
|
||||
}, [firstLoad, expanded, tableContext.allChildren]);
|
||||
|
||||
useEffect(() => {
|
||||
console.log('allSubChildren===', tableContext.allSubChildren);
|
||||
}, [tableContext.allSubChildren]);
|
||||
|
||||
const renderRowPrefix = () => {
|
||||
if (expandable && rowSelection) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user