Skip to content

detecting state changes #33

@chisholmd

Description

@chisholmd

If I set a deep property like this this:

  setExplorerSelectedBomId(state, payload) {
        state.explorer.bomId = payload;
        return state;
    },

my state change listeners do not get called.

If I add a kind of cache buster at the root of my state object, then it works.

    setExplorerSelectedBomId(state, payload) {
        state.foo=Date.now();
        state.explorer.bomId = payload;
        return state;
    },

It seems to work and is pretty painless, but I thought I would just check to see if this was a bug, or if there is a more proper way to push changes so that they get detected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions