-
Notifications
You must be signed in to change notification settings - Fork 1
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
Javascript Set in state #95
Comments
@Elaskin I have fixed this, you can try on v1.2.2 for vue2 or v.4.1.0 for vue3 |
Thanks, is there a reason against structuredClone though? |
Yes, I used vuex util to clone It does not support Set, Map ... I have changed to other clone mechanism |
I meant why not just use https://developer.mozilla.org/en-US/docs/Web/API/structuredClone |
You can check it, the function requires recent versions of browser and node: https://developer.mozilla.org/en-US/docs/Web/API/structuredClone#browser_compatibility Plain js is usually better approach. |
Describe the bug
Expected behavior
error occures because of this line (utils.js:50)
![image](https://private-user-images.githubusercontent.com/33493232/255537942-f0b7d39a-5d76-409c-9215-f83a3d12d1b7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIzMzkyNjgsIm5iZiI6MTcyMjMzODk2OCwicGF0aCI6Ii8zMzQ5MzIzMi8yNTU1Mzc5NDItZjBiN2QzOWEtNWQ3Ni00MDljLTkyMTUtZjgzYTNkMTJkMWI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzMwVDExMjkyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE5YjA3ZWUxYjY1MDlkMDkzNDk1MjdlMTJlN2ExMzg1MDUxZGYzY2NjNzc4MDYxYmIyNjI4ZWFiODA4NGVhYjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fSuKFAyU58co01uKBUVs1mgLeEnoTbHybx4OFBgCeNw)
The text was updated successfully, but these errors were encountered: