Skip to content

Error in VuexLogger on splice array #1836

@FreakyHead

Description

@FreakyHead

Version

4.0.0-beta.4

Reproduction link

none

Steps to reproduce

Enable Logger for Vuex (createLogger)

  1. Add to store param with an array value (list)
  2. Create a mutation to change param above (list.splice(0,1))
  3. Call mutation
  4. Got error

What is expected?

No errors

What is actually happening?

 TypeError: Cannot convert a Symbol value to a number
    at vue.js:431
    at Map.forEach (<anonymous>)
    at trigger (vue.js:430)
    at Object.set (vue.js:592)
    at Proxy.splice (<anonymous>)
    at Proxy.arrayInstrumentations.<computed> (vue.js:522)
    at Store.REMOVE_CALCULATION (C:\Users\denva\WebstormProjects\agenta.web\src\store\modules\Claculator\Calculator.ts:54)
    at wrappedMutationHandler (vuex.esm-bundler.js:802)
    at commitIterator (vuex.esm-bundler.js:434)
    at Array.forEach (<anonymous>)

If I disable Logger no errors will

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions