Skip to content

Commit

Permalink
avniproject/avni-server#663 | send api call as upfront and debounce s…
Browse files Browse the repository at this point in the history
…ubsequent calls within timeout
  • Loading branch information
himeshr committed Dec 19, 2023
1 parent 7237c6d commit 9164f4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const SubjectAssignmentMultiSelect = props => {
});
};

const debouncedOnChange = debounce(_onChange, 500);
const debouncedOnChange = debounce(_onChange, 500, { leading: true, trailing: false });

function getDropdownButtonLabel({ placeholderButtonLabel, value }) {
if (value.length === 0) {
Expand Down

0 comments on commit 9164f4d

Please sign in to comment.