@mocanvas/editor · constant

TAB_ID

declare const TAB_ID: string

A stable per-tab identifier.

Session state is stored per tab, not per origin: two tabs on the same board are two people as far as camera, selection and presence are concerned, and they must not overwrite each other's saved viewport. It is kept in sessionStorage so it survives a reload of *this* tab and nothing else, which is exactly the lifetime a session has.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.