component-elements icon indicating copy to clipboard operation
component-elements copied to clipboard

Request - Change props by directly changing element .properties

Open poof86 opened this issue 7 months ago • 0 comments

Passing large objects or arrays as props through HTML attributes now requires serialising to strings and then deserialising them back to objects (through formatProps right?)

It would be nice if we could change the props directly on the DOM element object itself, bypassing the string conversion. Also it might not be optimal to have large data objects as string values in HTML attributes for browser performance?

I believe this is already implemented in preact-custom-element, would it be possible to have the same feature for preactement?

Thanks you!

poof86 avatar Jun 19 '25 12:06 poof86