vue-idb
vue-idb copied to clipboard
Complete example of vuex installation
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!
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
I'll update the doc soon
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
Hi! How can I notice that the example is provided?
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.