-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
code optimization, extract common code hooks usePrevious #3573
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Can you refactor the hook code to TypeScript?
ok |
what do i need to do next? |
refactor the hook code to TypeScript fix lint delete usePrevious.js, use ts
dc6aa42
to
b384585
Compare
@nuoyz I've taken the liberty of squashing your commits (and properly attributing them). you're PR should be good to merge now as the CLA requirement is now satisfied. :) |
Description
code optimization: usePrevious code implementations exist in multiple files; Easy maintenance, common code implementation
Checklist
Issue
Resolves #???