Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Mutation emmited with value wrapped in array instead of value directly #47

@probil

Description

@probil

Example

// store.js
export default {
  mutation: {
    SOCKET_GREETING_MESSAGE(state, message) {
      console.log(message);
    },
  },
}
// server.js
io.emit('GREETING_MESSAGE', 'Hi there');

Expected result: SOCKET_GREETING_MESSAGE receives message as 'Hi there'
Actual result: SOCKET_GREETING_MESSAGE receives message as ['Hi there']


Versions

vue-socket.io-extended: 2.0.0
vue: 2.5.13
vuex: 3.0.1

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions