You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vilican
changed the title
Replace_With_Component_Name: Brief_Bug_Description
useDebounce: Incorrectly used 'any' type
Oct 10, 2023
melloware
added
Typescript
Issue or pull request is *only* related to TypeScript definition
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Oct 10, 2023
Describe the bug
useDebounce is typed only with
any
values, which causes problems with using it in TypeScriptReproducer
https://codesandbox.io/s/primereact-test-forked-hwkg8m?file=/src/index.js
PrimeReact version
10.0.2
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
Should be typed with TS generics, similarly to native useState
The text was updated successfully, but these errors were encountered: