Skip to content

Commit

Permalink
extract debounce time to const
Browse files Browse the repository at this point in the history
  • Loading branch information
OlimpiaZurek committed Jun 18, 2024
1 parent 2b49784 commit 49336df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ const CONST = {
COMMENT_LENGTH_DEBOUNCE_TIME: 500,
SEARCH_OPTION_LIST_DEBOUNCE_TIME: 300,
RESIZE_DEBOUNCE_TIME: 100,
UNREAD_UPDATE_DEBOUNCE_TIME: 300,
},
SEARCH_TABLE_COLUMNS: {
RECEIPT: 'receipt',
Expand Down
2 changes: 1 addition & 1 deletion src/libs/UnreadIndicatorUpdater/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const triggerUnreadUpdate = debounce(() => {
const unreadReports = memoizedGetUnreadReportsForUnreadIndicator(allReports, currentReportID);

updateUnread(unreadReports.length);
}, 300);
}, CONST.TIMING.UNREAD_UPDATE_DEBOUNCE_TIME);

Onyx.connect({
key: ONYXKEYS.COLLECTION.REPORT,
Expand Down

0 comments on commit 49336df

Please sign in to comment.