Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Wrong type of parameter received in setTheme callback #305

Open
PranavDhamanage opened this issue Jul 6, 2024 · 1 comment
Open
Labels
bug Something isn't working triage

Comments

@PranavDhamanage
Copy link

What happened?

While providing a callback to the setTheme function returned from the hook useTheme, the callback receives the parameter which is basically the prevState which is of type function rather than a string. But in typescript it shows that we can only receive the parameter of type string but in reality it's a function or a string. In ideal scenario it should be only string.
image
image

Please let me know if there is any missing understanding from my side 😄 Thanks in advance 👍

Version

0.3.0

What browsers are you seeing the problem on?

Firefox, Chrome

@PranavDhamanage PranavDhamanage added bug Something isn't working triage labels Jul 6, 2024
@ryanagillie
Copy link

This issue was fixed in #286 but they haven't done a release for it, @pacocoursey any idea why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

2 participants