Replies: 2 comments 2 replies
-
There's currently a runtime check performed by the If you like the semantics of something like |
Beta Was this translation helpful? Give feedback.
-
Here's a minimal example that might match what you're trying to do: prop passing example |
Beta Was this translation helpful? Give feedback.
-
In an attempt to avoid referencing global variables in my ReactiveElement class definitions, I've been experimenting with passing in objects using lit-html property expressions, e.g.
This works as expected in some cases, but as soon as
someBar
is an instance of a user-defined class, it breaks withTo hack around this, I've been passing
${{wrapped: someBar}}
, as passing a plain object bypasses this complaint, but that's a pretty messy kludge. Is there some cleaner way to appease ReactiveElement here?Beta Was this translation helpful? Give feedback.
All reactions