Replies: 1 comment 3 replies
-
The avatar style is an object with functions. Functions cannot be stored in LocalStorage. These functions will be removed automatically and you will miss them after reading them from the local storage. I'm not quite clear what you're trying to do by storing the style in LocalStorage. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to get URL with CreateAvatar but it seems not to be working. I store all the avatar info in localstorage when it was created in another component (in which everything worked) but in Header component, CreateAvatar does not work. I know there is Proxy object in console but believe it does not affect anything.
Pasted my code below:
user.avatar.style and style are exactly the same except user.avatar.style is coming from localstorage.
I also get the following error message in console:
Uncaught TypeError: t.create is not a function
at Proxy.Qt (index.umd.js?b41d:32)
at eval (Header.vue?0418:40)
at Proxy.renderFnWithContext (runtime-core.esm-bundler.js?5c40:1124)
at _render (headlessui.esm.js?d511:173)
at render (headlessui.esm.js?d511:133)
at Proxy.render$1 (headlessui.esm.js?d511:2410)
at renderComponentRoot (runtime-core.esm-bundler.js?5c40:1167)
at componentEffect (runtime-core.esm-bundler.js?5c40:5220)
at reactiveEffect (reactivity.esm-bundler.js?a1e9:42)
at effect (reactivity.esm-bundler.js?a1e9:17)
Any help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions