Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Tsup messes up isLoading vs isRunning #30

@verheyenkoen

Description

@verheyenkoen

Tsup generates a typings file that assumes the name of the isRunning exported variable as "isLoading" incorrectly. Obviously if you use this, it doesn't work and if you use isRunning, Typescript errors.

Check out the client.d.ts file at https://www.npmjs.com/package/zact?activeTab=code

Anyway, I guess it's not ever a good idea to not keep your state variable name and setter aligned like you do here:

const [isRunning, setIsLoading] = useState(false);

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