TLINSTANCE_ID
See source codeThe 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_IDNext
TLPOINTER_ID