Skip to content

Autocompletion suggests props that were already assigned #175

Closed
@cknitt

Description

@cknitt

(Beta2)

When I press Ctrl-Space here:

module X = {
  @react.component
  let make = (~a: string, ~b: int) => React.string(a ++ string_of_int(b))
}

<X a="hello" b=42 

I get this:

Bildschirmfoto 2021-04-27 um 18 18 35

i.e. a and b are in the list even though they already have values assigned.

(In TypeScript, only props that were not assigned any values yet are shown in the list.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions