Skip to content

Request - Change props by directly changing element .properties #31

@poof86

Description

@poof86

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions