TLINSTANCE_ID

See source code

The constant ID used for the singleton TLInstance record.

Since each browser tab has exactly one instance, this constant ID is used universally across the application.

TLINSTANCE_ID: TLInstanceId

Example

const instance = store.get(TLINSTANCE_ID)
if (instance) {
  console.log('Current page:', instance.currentPageId)
}
Prev
TLDOCUMENT_ID
Next
TLPOINTER_ID