mergeProps use "for in" loop ! #8054
ppierre
started this conversation in
General Discussions
Replies: 2 comments 5 replies
-
|
it works fine, see demo. |
Beta Was this translation helpful? Give feedback.
5 replies
-
|
It's unrelated to Vuejs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
mergePropsuse a "for in" loop. So if you use an object with a prototype (class instance), you have to "clean" it first.Exemple :
pb: pocketBase returnRecordinstance with$loadmethod.[pocketbase/js-sdk#181]
This code VueJS template code,
eventsis obtained bypb.collection("events").getFullList():Give this error :
runtime-core.esm-bundler.js:573 DOMException: Failed to execute 'setAttribute' on 'Element': '$load' is not a valid attribute name.I can get around by cloning the object :
What is wrong ?
Should I make a VueJS issue ?
Beta Was this translation helpful? Give feedback.
All reactions