Skip to content

Realtime firestore not working on svelte native #51

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

Closed
WilbertBocanegra opened this issue Feb 2, 2022 · 2 comments
Closed

Realtime firestore not working on svelte native #51

WilbertBocanegra opened this issue Feb 2, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@WilbertBocanegra
Copy link

when using the onsnapshot does not return anything

@triniwiz
Copy link
Member

triniwiz commented Feb 2, 2022

Can you try using this version of that call

onSnapshot({
next: (snapshot)=>{},
errror: (error)=>{}
});

@timdoege
Copy link

timdoege commented Mar 16, 2022

Just for info/more detail:
On a DocumentReference snapshot, using the overload with onNext, onError and onCompletion seems to be necessary to get data (specifying all 3 of them).
On a CollectionReference snapshot, having only onNext specified, works (tested in v1.1.1)

@triniwiz triniwiz added the bug Something isn't working label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants