mesqueeb / vuex-easy-firestore

Easy coupling of firestore and a vuex module. 2-way sync with 0 boilerplate!
https://mesqueeb.github.io/vuex-easy-firestore
MIT License
234 stars 28 forks source link

Resolve insert/patch promises after actual execution at Firestore #39

Open mesqueeb opened 6 years ago

mesqueeb commented 6 years ago

Improve the way that inserting/patching gives feedback to the Dev to allow the Dev to easily implement things like loading spinners / animated svgs etc.


After about two years of open source, I finally got accepted for Github Sponsors!

💜 github.com/sponsors/mesqueeb 💜

A little about me:

If anyone was helped with vuex-easy-firestore, I'd greatly appreciate any support!

BTW, donations get's paid DOUBLE by GitHub! (they're alchemists... 🦾)

Going forward 👨🏼‍💻

gerrykeys commented 5 years ago

That would be great!

mesqueeb commented 5 years ago

I was surprised to see 5 thumbs up, 3 hurrays and 3 hearts.

I'm actually thinking of not bothering with this because of this reason:

This is radically different from old PHP websites I used to build, and I believe because of this implementing a "loading spinner" for inserting/patching shouldn't be done.

I'll keep the issue open for visibility and am open to listen to any arguments!

Vuex Easy Firestore was made with ♥ by Luca Ban.
If this library helped you in any way you can support me by buying me a cup of coffee.

louisameline commented 4 years ago

This will be just like Firestore: in 2-way sync, you can expect the store to be updated immediately. In the future, in 1-way sync OR when you want to be sure the update is effective at Firestore, you can wait for the promise returned by the action to settle. @mesqueeb you can remove the won't fix label ;)