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

Fix the doc for hooks #329

Closed louisameline closed 4 years ago

louisameline commented 4 years ago

return must be used to pass the promise returned by the update function. I stumbled on this when errors were not properly caught, because the promise could actually not be handled as expected. Not all hooks could fail or are even asynchronous, but I think it's best practice to handle things properly and consistently for all hooks.