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

sdk.address() broken if sdk is a reactive variable in Vue 3 #1347

Closed
davidyuk opened this issue Dec 1, 2021 · 1 comment · Fixed by #1621
Closed

sdk.address() broken if sdk is a reactive variable in Vue 3 #1347

davidyuk opened this issue Dec 1, 2021 · 1 comment · Fixed by #1621

Comments

@davidyuk
Copy link
Member

davidyuk commented Dec 1, 2021

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'publicKey')
    at Proxy.address (memory.js?957c:76)
    at Proxy.address (multiple.js?779a:66)
    at Proxy.mounted (App.vue?91a0:169)

occurs at

return Promise.resolve(secrets.get(this).publicKey)

Account instance somehow getting wrapped by Proxy object that breaks retrieving of keypair using WeakMap.

@davidyuk
Copy link
Member Author

Proxy also is not compatible with private class fields: tc39/proposal-class-fields#106
So, probably sdk won't be compatible being a reactive variable in vue 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant