Function useOfflinePlaygroundIdentity

  • Returns {
        create: ((params) => IdentityOfflinePlayground);
    }

    Example

    const { create } = useOfflinePlaygroundIdentity();

    const myIdentity = create({appId: uuid(), siteID: 1234});
    const ditto = new Ditto(myIdentity, '/path');

    A hook for creating Development Ditto identity objects.