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

useDebounce: Missing type #5085

Closed
Vilican opened this issue Oct 11, 2023 · 0 comments · Fixed by #5086
Closed

useDebounce: Missing type #5085

Vilican opened this issue Oct 11, 2023 · 0 comments · Fixed by #5086
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component. Typescript Issue or pull request is *only* related to TypeScript definition
Milestone

Comments

@Vilican
Copy link
Contributor

Vilican commented Oct 11, 2023

Describe the bug

useDebounce returns a tuple of three elements but is typed as returning a tuple of two elements.

image

image

(relates to: #5071)

Reproducer

https://codesandbox.io/s/primereact-test-forked-gzw5kd?file=/src/index.js

PrimeReact version

10.0.3

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@Vilican Vilican added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 11, 2023
@melloware 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 12, 2023
@melloware melloware added this to the 10.0.4 milestone Oct 12, 2023
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component. Typescript Issue or pull request is *only* related to TypeScript definition
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants