vue-idb icon indicating copy to clipboard operation
vue-idb copied to clipboard

Complete example of vuex installation

Open Garito opened this issue 7 years ago • 5 comments

Hi! After reading the documentation I don't understand how to use then the idb database in the vuex object Is it mapping all the state? How can I insert, delete, update records? How can choose what to save/read/update/delete?

Thanks!

Garito avatar Oct 23 '17 23:10 Garito

Hi, all related vuex actions search for an options.api.[all, add, update, remove] which take the payoad as parameter : ex: testsAdd look for api.add, testsUpdate look for api.update, testsRemove look for api.remove and testsLoad look for api.all.

api.all take the payload with the last updated date found in idb to make the api filter on this date

dgri avatar Oct 24 '17 12:10 dgri

I'll update the doc soon

ddgll avatar Oct 24 '17 12:10 ddgll

Please, remember to provide complete usable examples (those I can copy & paste as they are and work) It is obvious that we tend to obviate things that for us are obvious but not for those who don't understand you library And, at least, we need proper documentation for the regular use cases

I understand this is a lot of work but we can't even think in collaboration if we can't understand how this code works

Garito avatar Oct 24 '17 13:10 Garito

Hi! How can I notice that the example is provided?

Garito avatar Oct 25 '17 12:10 Garito

It would be great to have proper coverage of the possibilities we have with this package. Examples would be great but even just some details of the usage of the getters/actions.

How can we use a "filtered" version of the schema? getTessFiltered how does it works? I'm struggling to use the VUEX integration without messing around.

dvago avatar Feb 14 '18 15:02 dvago