Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LocalDocument Observer field error #661

Closed
LeTienHanh opened this issue May 25, 2018 · 1 comment
Closed

LocalDocument Observer field error #661

LeTienHanh opened this issue May 25, 2018 · 1 comment

Comments

@LeTienHanh
Copy link

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.

@pubkey
Copy link
Owner

pubkey commented May 25, 2018

This is a bug at this line. .map() should be imported used in a rxjs-pipe. PR welcomed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants