Giter VIP home page Giter VIP logo

Comments (9)

mesqueeb avatar mesqueeb commented on June 4, 2024

@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.

thokkane avatar thokkane commented on June 4, 2024

@mesqueeb thanks for taking a look at this!
Btw, the library is awesome.

from vuex-easy-firestore.

mesqueeb avatar mesqueeb commented on June 4, 2024

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.

mesqueeb avatar mesqueeb commented on June 4, 2024

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.

mesqueeb avatar mesqueeb commented on June 4, 2024

@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.

mesqueeb avatar mesqueeb commented on June 4, 2024

@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.

thokkane avatar thokkane commented on June 4, 2024

@mesqueeb thanks! It works fine. User error: I had disabled the openDBChannel call.

from vuex-easy-firestore.

mesqueeb avatar mesqueeb commented on June 4, 2024

Ok iā€™m glad!!!
Check out the release notes for latest info as well!

Sent with GitHawk

from vuex-easy-firestore.

mesqueeb avatar mesqueeb commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.