@mocanvas/editor · function

createTLCurrentUser

declare function createTLCurrentUser(): CurrentUser

A CurrentUser over the persisted preferences above — the editor's user prop when an app has no opinion about where preferences live.

Contrast {@link ./userPreferences.createCurrentUser}, which keeps them in an atom that dies with the page.

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.