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

Hoang - hoang.nguyen4 #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

hoangnd21
Copy link

Functions

  • Handle 4 state
    • initital: show input with placeholder
    • fetching: fetching data, show input with a loader
    • success: feteched data successfully, show list item or text "No results" if there are no results
    • error: fetched data failed, show error message
  • When click into an item, trigger the onSelectItem function
  • Add a debounce 100ms when fetching data
  • Handle race condition

@hoangnd21 hoangnd21 changed the title assignment finalized Hoang - hoang.nguyen4 Oct 5, 2024
@Namlv143
Copy link

Namlv143 commented Oct 8, 2024

Issues

  • Component re-render many times unnecessary
    image

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.

2 participants