Skip to content

useDebounce now fired on component mount #759

@newsiberian

Description

@newsiberian

What is the current behavior?
Hook now fired even when component has been mounted.

Steps to reproduce it and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have extra dependencies other than react-use. Paste the link to your JSFiddle or CodeSandbox example below:

What is the expected behavior?
I expect that hook should be called only after I edit input.

A little about versions:

  • OS:
  • Browser (vendor and version):
  • React:
  • react-use: 13.3.0
  • Did this worked in the previous package version?
    This behavior not reproduced in react-use@13.2.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions