Comments (9)
@thokkane should be alright!
I don't have a good test environment for hooks because of the Firestore mock i'm using. So it's possible there's a bug!!!
I'll have time to check tomorrow and will post back here.
Sent with GitHawk
from vuex-easy-firestore.
@mesqueeb thanks for taking a look at this!
Btw, the library is awesome.
from vuex-easy-firestore.
I just tested on several instances and it works alright in all my cases.
Your setup also seems alright, I'm not sure what's wrong.
Is there anything else not working?
Please note you have to add updateStore
to have the doc actually reflect the changes to the vuex store. In your case it will only give a console.log:
modifiedHook: function (updateStore, doc, id, store, source, change) { console.log("modified"); }
Change to
modifiedHook: function (updateStore, doc, id, store, source, change) { console.log("modified"); updateStore (doc); }
But in your case the problem is that even "modified" isn't logged right?
from vuex-easy-firestore.
I did find a bug with "doc" mode (as opposed to "collection" mode) which I'm gonna fix asap. But no bugs found on "collection" mode, so I'm confused why your console is not logging!
edit: "doc" mode hooks bug fixed in lastest version pushed to npm.
from vuex-easy-firestore.
@thokkane
I updated the documentation with further clarification on hooks.
Please check it here.
I'm still not sure why your hook is not firing. Should work fine!
Can you give me any other information?
from vuex-easy-firestore.
@thokkane Could you let me know if you still have problems? I think there are no hook-related bugs, so i'll close it for now.
Feel free to open again and continue the discussion!
from vuex-easy-firestore.
@mesqueeb thanks! It works fine. User error: I had disabled the openDBChannel call.
from vuex-easy-firestore.
Ok iām glad!!!
Check out the release notes for latest info as well!
Sent with GitHawk
from vuex-easy-firestore.
For anyone working with HOOKS, there has been a small (non-breaking) change to their behaviour.
Please read about it in the latest release.
from vuex-easy-firestore.
Related Issues (20)
- cannot read resolve of undefined HOT 7
- Feature: Add firestore.getAll() on the web HOT 7
- Question: can we rely on the `signedIn` getter to check if the user is signed in? HOT 3
- Guard 'id' will still add 'id' on update HOT 1
- Reacting to changes in vue-router HOT 1
- Retrieve subcollections together with document HOT 2
- feat(docs): add firestore guide
- RangeError: Maximum call stack size exceeded HOT 6
- ProjectId not provided in firebase.initializeApp despite being provided HOT 3
- Can't get it to work no matter what! HOT 6
- Two-way binding HOT 4
- Getters undefined when working with users collection + sign in onAuthStateChanged [Help]
- fetch only returns id in doc HOT 2
- Update library for firebase v9 HOT 3
- Adding "in" or "array-contains" to the where clause
- setPathVars should be better documented HOT 1
- Doc insertion from multiple apps at he same index
- project build process HOT 1
- E2E test with Cypress
- syncStack / rejects HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuex-easy-firestore.