Skip to content

Review and improve typing for react states #935

@mfisher87

Description

@mfisher87

We have some untyped state laying around that should be fairly easy to type. Also, at times we use the empty string for the initial state when it should be undefined.

Review useState hooks:

  • Which ones need typing? Type as useState<MyType>(...)
  • Which ones need better default value? Replace empty string with undefined where sensible.

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