-
-
Notifications
You must be signed in to change notification settings - Fork 49
Firebase introduces Cloud Firestore #117
Comments
yes, it's something I'll look into and see how to add it |
Hey, @posva! Is there any news about firestore integration in to vuexfire? |
Hello, the truth is I got most working a month ago with vuefire but due to personal matters, I couldn't push it forward. I'll get a release for both, vuefire and vuexfire, before 2018 for sure 🙂 |
@posva Would you mind making a branch with those changes? I had started integrating Firestore into vuexfire for my personal use, but ran into some issues with the npm package used for testing not up to date with the Firestore Reference docs. Also, I would like to start testing out the new feature. |
It's something I'll add as soon as I can. I don't understand the not up to date with the Firestore Rference docs. They look fine to me |
When trying to write tests for vuexfire, I ran into some problems with the Firestore version for web here (I believe the error was something about not being able to load a file; maybe it was just my machine). So I looked at using the NodeJS version here, but that code doesn't meet the reference docs. One specific instance that I ran into was the lack of an options parameter for Anyways, I'd love to test/use your integration of Firestore. I'll be eagerly awaiting that push. Thanks again for this awesome software! |
Oh, if you want to check some existing code you can already check the firestore branch of vuefire |
Hello! I ended up working a lot on vuefire before releasing a working version for vuexfire that's why it took so long, good news are it has almost all the features I wanted to add. I just released an alpha version, it supports everything the alpha version of vuefire supports If you want to try v3.0.0-alpha.0 you can install it with the |
I modified the demo fiddle to use firestore for those interested : https://jsfiddle.net/c4m4c940/ It's working! Let me know if there is unnecessary code. Or beginner mistake. Only way i got firestore working was by adding another script tag pointing to firestore. Thank for making this. I will use it in my app for sure! |
Just notifying that the options callbacks aren't working right now for firestore https://jsfiddle.net/mvwcqt43/ I kind of need the document snapshot for collections when they are loaded because pagination in firestore requires that as a param in |
Also, timestamp fields are being bound as empty objects for some reason. |
They return promises now, so no need for callbacks 😉 |
Thanks, it'd be great if you take a look at the timestamp issue |
Yes, I will. I saw it already on vuefire, non-plain objects are not converted correctly 😓 . Created #144 for that |
@posva Is there a reason you didn't use the functionality from the RTDB version for the Firestore version? I just created the same styled functionality for Firestore that RTDB had (bindings, creating snapshots, etc.). All objects were correctly converted (by Firebase) and just needed to be set to the store. Here is my version of Vuexfire with Firestore added: https://github.com/bmass02/vuexfire/tree/add-firestore-support. I've been using it for the past 3 months without any troubles. Also, I'd be happy to help with getting the Firestore version to production if you're looking for help. |
I simply wanted to change too many things to reuse some of the functions |
Thanks it works well and helps me a lot. |
Awesome! it works! you are a genius bro |
Firestore has been supported for a long time now. |
Firebase has released Cloud Firestore which looks to be a significant improvement over the current Realtime Database.
Hopefully, this can be incorporated into Vuexfire?
Related issue at vuejs/vuefire#131
The text was updated successfully, but these errors were encountered: