(public book: BookRecord)
| 428 | } |
| 429 | |
| 430 | constructor(public book: BookRecord) { |
| 431 | super(book.id, book.name) |
| 432 | |
| 433 | // don't subscribe `db.books` in `constructor`, it will |
| 434 | // 1. update the unproxied instance, which is not reactive |
| 435 | // 2. update unnecessary state (e.g. percentage) of all tabs with the same book |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | class PageTab extends BaseTab { |
nothing calls this directly
no outgoing calls
no test coverage detected