Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why can’t I assign a socketio object to state in strict mode #1516

Closed
zzzgit opened this Issue Mar 7, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@zzzgit
Copy link

zzzgit commented Mar 7, 2019

export default {
	state: {
		socket: null,
	},
	mutations: {
		keepSocket: (state, payload)=>{
			state.socket = payload
		},
	},
	actions: {
	}
}

I am using vuex, if I try to set a socket-io client object to state in strict mode, I will get an error like this:

image

@vue-bot

This comment has been minimized.

Copy link

vue-bot commented Mar 7, 2019

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!

@vue-bot vue-bot closed this Mar 7, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.