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

Use useDefferedValue hook introduced in React 18 #630

Open
c-bata opened this issue Sep 26, 2023 · 0 comments
Open

Use useDefferedValue hook introduced in React 18 #630

c-bata opened this issue Sep 26, 2023 · 0 comments
Labels
enhancement New feature or request no-stale Exempt from stale bot

Comments

@c-bata
Copy link
Member

c-bata commented Sep 26, 2023

For debouncing the user keyboard input, we uses following React component. It would be nice if it is replaced by using useDefferredValue hook which is introduced in the latest React release.
https://github.com/optuna/optuna-dashboard/blob/main/optuna_dashboard/ts/components/Debounce.tsx

See the following article for details.
https://medium.com/@mujaffarhssn/say-goodbye-to-debouncing-use-usedeferredvalue-hook-7af7742d4456

@c-bata c-bata added the enhancement New feature or request label Sep 26, 2023
@keisuke-umezawa keisuke-umezawa added the no-stale Exempt from stale bot label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no-stale Exempt from stale bot
Projects
None yet
Development

No branches or pull requests

2 participants