vuex-easy-firestore
vuex-easy-firestore copied to clipboard
softDelete feature
In all my projects I dream of having soft delete. this means that the records which are deleted are just marked "deleted" but are still there. This means you can more easily implement "undo" and a trash-can to restore documents.
Although it could be nice, I think this is actually not related to synchronizing your store to the cloud. I think it should be done in a separate project, don't you think?
You are right. Since version 2 will be a small core and provide additional actions as plugins, we should think hard about what should and shouldn't be core functionality. ;)
This should indeed be a plugin. The duplicate action as well I think.
Sent with GitHawk
Not even a plugin in my mind. Another project completely independant from on v-e-f should need only to use the set/patch actions to do whatever it wants like soft delete and duplication. Do you see any other v-e-f API that such a project would have to use?
I think we don't want to put things on top of v-e-f, because it's an abstraction of cloud storage, which is supposed to deal with sync transparently. The whole point is to keep the user focused on his Vuex instance, and stop thinking about Firebase -and the library that links his Vuex to it. If a user want soft delete or duplication, he should look only for Vuex plugins, not v-e-f plugins, do you get my point? All we need to do is make such Vuex plugins compatible with v-e-f, and not have any kind of hard coupling with them.