useLocalSyncClient

Public Function

Use a client that persists to indexedDB and syncs to other stores with the same instance id, e.g. other tabs running the same instance of tldraw.

Parameters
NameDescription

{ universalPersistenceKey, instanceId, config, }

{
  universalPersistenceKey: string
  instanceId: TLInstanceId
  config: TldrawEditorConfig
}
Returns
SyncedStore
References

TLInstanceId, TldrawEditorConfig, SyncedStore

Edit this page
Last edited on 1 June 2023
TAB_ID