-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
vuex-pathify/src/services/store.js
Lines 23 to 25 in 9a35375
const payload = action.objPath | |
? new Payload(path, action.objPath, value) | |
: value |
The above code create non Payload object for "root path", like the following example:
// global.js Vuex module
import { make } from "vuex-pathify";
export const state = () => ({
something: true,
});
export const mutations = {
...make.mutations(state),
};
export const getters = {
...make.getters(state),
};
If I call $store.set("global/something", false)
, the Payload will be a simple object (like serialized object) and not a Payload instance.
Is there anything in particular to avoid using a Payload for the root path?
nb @davestewart : you did not push tags not the repo, and you did not release 1.5.1
on NPM.
I know that you are very busy, so, stay in shape 💪
Metadata
Metadata
Assignees
Labels
No labels