(page: Page)
| 28 | } |
| 29 | |
| 30 | add(page: Page): void { |
| 31 | this.react.cache.push(page); |
| 32 | |
| 33 | if (this.react.cache.length > 3) { |
| 34 | const page = this.react.cache.shift(); |
| 35 | |
| 36 | page?.destroy(); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | bump(pageId: string): void { |
| 41 | const pageIdx = this.react.cache.findIndex((page) => page.id === pageId); |
no test coverage detected