You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented some fairly simple logic for this in my org's forked vue wc wrapper around here, where users would pass a JSON to a prop with a -json suffix, then map that -json back to the "real" prop. It helped us keep the seamlessness between consuming components as Web Components or just as plain Vue components.
I want to pass attribs in my custom element like this:
<my-custom-element attribute-one="[1,2,3,4]" ></my-custom-element>
and receive that into my preact component as an Array, and not a String. For now, im parsing all my props before rendering:
Do you guys think that is a nice improvement for the project? If you agree, i can make a PR with that, just let me know!
The text was updated successfully, but these errors were encountered: