vuex-orm / plugin-change-flags

Vuex ORM plugin for adding IsDirty / IsNew flags to model entities.
MIT License
24 stars 10 forks source link

Not compatible with Vuex-ORM v0.35.0 #9

Open da-snap opened 4 years ago

da-snap commented 4 years ago

After an update to the latest Vuex-ORM version this plugin is unfortunately broken. For example, when I call 'entities/allDirty' or 'resetAllDirtyFlags', I get an error: store.$db is not a function

I think the problem is the breaking change in Vuex-ORM 0.35:

The Query now must receive database instance as the first argument.

kiaking commented 4 years ago

Thanks for the report! Yea, we have to update this plugin...

cuebit commented 4 years ago

@da-snap @kiaking an update is currently in progress.

Will keep this thread open for updates.

Is0MerLNtaLt commented 4 years ago

Any updates @cuebit ? 😃

cuebit commented 4 years ago

@codegabru yea sorry, this has been on the back burner since Vuex ORM Next began its first journey. Re-writing the plugin is one thing, but knowing it will have to be refactored again with the next core release is somewhat inducing lethargy.

I'll take a look this week, see what we can uncover. 👍