@mocanvas/editor · constant

DEFAULT_PAGE_ID

declare const DEFAULT_PAGE_ID: PageId

The id of an empty document's first page.

A fixed id rather than a fresh one, so two replicas that each seeded their own store still meet on the same page. Lives here beside DOCUMENT_ID because createStore seeds both and must not import the editor to do it.

Mentioned here

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.