Skip to content

Commit

Permalink
Prevent duplicated request in web
Browse files Browse the repository at this point in the history
  • Loading branch information
sublee committed Feb 6, 2023
1 parent fb3d38f commit 89002c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/src/hangulize/useHangulize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ export function useHangulize(): [Hangulize, SetHangulizeInput] {
return
}

// Ignore the same target.
if (target.current === input) {
return
}

// Set the latest target.
target.current = input

Expand Down

0 comments on commit 89002c3

Please sign in to comment.