@mocanvas/editor · function

createMemoryUserStore

declare function createMemoryUserStore(users: readonly User[], currentUserId?: UserId): UserStore

A UserStore over a fixed list of people. The first entry (or currentUserId when given) is the current user. Useful for tests, demos and single-player.

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.