Skip to content

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

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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