Skip to content

Commit 42376c2

Browse files
committed
fix(Channel): invoke throttled state updates on leading edge
1 parent c393dc7 commit 42376c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/Channel/Channel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ const scrollToFirstUnreadThreshold = 4;
160160
const defaultThrottleInterval = 500;
161161
const defaultDebounceInterval = 500;
162162
const throttleOptions = {
163-
leading: false,
163+
leading: true,
164164
trailing: true,
165165
};
166166
const debounceOptions = {

0 commit comments

Comments
 (0)