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

Tsup messes up isLoading vs isRunning #30

Open
verheyenkoen opened this issue May 11, 2023 · 0 comments
Open

Tsup messes up isLoading vs isRunning #30

verheyenkoen opened this issue May 11, 2023 · 0 comments

Comments

@verheyenkoen
Copy link

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);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant