Skip to content

Hoang - hoang.nguyen4#22

Open
hoangnd21 wants to merge 1 commit intoduannx:mainfrom
hoangnd21:hoang.nguyen4
Open

Hoang - hoang.nguyen4#22
hoangnd21 wants to merge 1 commit intoduannx:mainfrom
hoangnd21:hoang.nguyen4

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