Skip to content

LocalDocument Observer field error #661

Closed
@LeTienHanh

Description

I using observer for LocalDocument with your example:

await myCollection.upsertLocal(
    'foobar',   // id
    {           // data
        foo: 'bar'
    }
);
localDoc = await myCollection.getLocal('foobar');
localDoc.get$('foo').subscribe(value => { /* .. */ });

But the error raise:

Uncaught (in promise) TypeError: this._dataSync$.map is not a function
    at RxLocalDocument.get$ (local-documents.js:135)

Please help me check this problem because my project face with refactor all with this problem.
Thank you very much.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions