Skip to content

Added Typescript version of usePrevious hook #101

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

Merged
merged 4 commits into from
Nov 30, 2020
Merged

Added Typescript version of usePrevious hook #101

merged 4 commits into from
Nov 30, 2020

Conversation

nikasepiskveradze
Copy link
Contributor

@nikasepiskveradze nikasepiskveradze commented Nov 25, 2020

I provided Typescript version of usePrevious hooks. I tried to be as generic is possible, if there is some mistakes let me know.

@nikasepiskveradze
Copy link
Contributor Author

Also added useWindowsSize hook Typescript version

@gragland gragland merged commit fcc0e51 into uidotdev:master Nov 30, 2020
@gragland
Copy link
Contributor

Thank you!

@nikasepiskveradze nikasepiskveradze deleted the convert-to-typescript branch December 22, 2020 20:13
benadam11 pushed a commit that referenced this pull request May 29, 2023
* Added Typescript version of usePrevious hook

* Simple type fix

* Convert added typescript version of useWindowSize

Co-authored-by: Nika Sepiskveradze <nika.s@webiz.ge>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants