API Reference
Cinder.lastScan
Read the most recent semantic scan result without running a new scan.
Need the shortest path?
Use Quick Start when you want the smallest working route → scan → graph → run flow first.
Something feels off?
Inspect scan output, graph state, active route/context, and dispatch in a practical order.
Need the full surface?
Browse all runtime methods, hooks, extension points, and lifecycle APIs.
Use lastScan() when you want to inspect the latest semantic scan output without rescanning the DOM.
Example
ts
2 lines
await Cinder.scan(document);
console.log(Cinder.lastScan());What it returns
lastScan() returns the current CinderSemanticScanResult.
That includes:
entrieswarningssummaryscannedAt
Why it is useful
Use it when you want to:
- debug scan output quickly
- compare scan state before and after UI updates
- inspect mutation-driven rescans without forcing another manual scan
Important note
If no scan has run yet, the runtime returns its current empty scan result state.
Related pages
Continue reading