lablup / backend.ai-webui

Backend.AI Web UI for web / desktop app (Windows/Linux/macOS). Backend.AI Web UI provides a convenient environment for users, while allowing various commands to be executed without CLI. It also provides some visual features that are not provided by the CLI, such as dashboards and statistics.
https://www.backend.ai
GNU Lesser General Public License v3.0
93 stars 66 forks source link

fix: `onChangeAliasMap` is triggered on every render #2370

Closed yomybaby closed 1 month ago

yomybaby commented 1 month ago

This PR resolves #2368. This is a side effect of https://github.com/lablup/backend.ai-webui/pull/2359

Before this PR, VFolderTable was triggering onChangeSelectedRowKeys on every render if the parent component passed selectedRowKeys as a new instance of an array. VFolderTable should consider this scenario.

Checklist: (if applicable)

github-actions[bot] commented 1 month ago

Coverage report for ./react

St.:grey_question:
Category Percentage Covered / Total
πŸ”΄ Statements 3% 118/3935
πŸ”΄ Branches 3.27% 87/2662
πŸ”΄ Functions 1.46% 19/1302
πŸ”΄ Lines 2.95% 114/3858

Test suite run success

32 tests passing in 4 suites.

Report generated by πŸ§ͺjest coverage report action from 8276e895449e8314e4ed8240c33b43b687a47844