Repository navigation
Commit 6312dde
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 c331267 commit 6312dde
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 | | |
| |||
1686 | 1689 | | |
1687 | 1690 | | |
1688 | 1691 | | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
1689 | 1697 | | |
1690 | 1698 | | |
1691 | 1699 | | |
| |||
1746 | 1754 | | |
1747 | 1755 | | |
1748 | 1756 | | |
| 1757 | + | |
| 1758 | + | |
1749 | 1759 | | |
1750 | 1760 | | |
1751 | 1761 | | |
| |||
0 commit comments