MCPcopy Create free account
hub / github.com/pacexy/flow / constructor

Method constructor

apps/reader/src/models/reader.ts:430–436  ·  view source on GitHub ↗
(public book: BookRecord)

Source from the content-addressed store, hash-verified

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
439class PageTab extends BaseTab {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected