Commit bf35f6c
committed
fix(file-browser): Abort pending directory rendering tasks on path change or page hide
Introduce `AbortController` tracking to cancel pending directory listing render tasks when navigating quickly or hiding the page.
Add render abort controller logic (`src/pages/fileBrowser/fileBrowser.js`):
- Instantiate `AbortController` instance inside `renderCurrentDir`
- Abort existing controller prior to running new render sequence
- Validate `abortSignal` before committing directory list DOM updates
- Call `abort` on active render controller when `$page.onhide` fires
(AI generated commit message)1 parent 2c44436 commit bf35f6c
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
| |||
629 | 631 | | |
630 | 632 | | |
631 | 633 | | |
| 634 | + | |
632 | 635 | | |
633 | 636 | | |
634 | 637 | | |
| |||
1694 | 1697 | | |
1695 | 1698 | | |
1696 | 1699 | | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
1697 | 1705 | | |
1698 | 1706 | | |
1699 | 1707 | | |
| |||
1754 | 1762 | | |
1755 | 1763 | | |
1756 | 1764 | | |
| 1765 | + | |
| 1766 | + | |
1757 | 1767 | | |
1758 | 1768 | | |
1759 | 1769 | | |
| |||
0 commit comments