Luna  Mosciski

Luna Mosciski

1600648800

Vue.js Interview Challenge  — Debounced Search

Problem statement

You were asked to implement a search input that will filter an existing dataset.

You finished the task and is was working fine, but the requirements changed and we will use the API instead of a fixed list now. Unfortunately, the API is not ready yet, but you were asked to proceed with mocked data and prepare the solution.

Requirements:

  • prevent the API calls being triggered every time the user changes the input
  • show “Searching…” while user is typing
  • when the input value did not changed to 1 second assume that the user finished typing and show the results (use the existing data for now, you will make an API call in the future in that place)

#interview-tips #interview #interview-preparation #vuejs #interview-questions #vue

Vue.js Interview Challenge  — Debounced Search