@mocanvas/editor · function · deprecated

createUserPreferences

declare function createUserPreferences(init?: UserPreferencesInit): UserPreferences

Create a UserPreferences backed by one session atom.

@deprecated See UserPreferences. New code should build a CurrentUser (createCurrentUser, or useCurrentUser in React) and wrap it in a UserPreferencesManager.

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.