Skip to content

Using JsxDOM.domProps in a type spread seems to be slow (discovered in playground) #6284

Closed
@ryyppy

Description

@ryyppy

When spreading JsxDOM.domProps in a record, the compilation is perceivably slower on the playground due to its blocking UI on slow compilation.

Here's a minimal example (v11.0.0-beta.1):

type divProps = {
  ...JsxDOM.domProps,
  foo: string
}

// Start typing here and you'll notice some considerable lag

Playground link

Not sure if this is a real issue, but I'd say it's a good indication that this language construct may break our performance goals in bigger codebases.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions