Skip to content

Commit e3ef549

Browse files
committed
chore: clean up
1 parent 9eff81a commit e3ef549

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/Overflow.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ function Overflow<ItemType = any>(
130130

131131
const [restReady, setRestReady] = useState(false);
132132

133-
console.log('render');
134-
135133
const itemPrefixCls = `${prefixCls}-item`;
136134

137135
// Always use the max width to avoid blink

src/hooks/useEffectState.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,11 @@ export function useBatcher() {
1717

1818
// Notify update
1919
const notifyEffectUpdate: NotifyEffectUpdate = callback => {
20-
// console.error('Update');
2120
if (!updateFuncRef.current) {
2221
updateFuncRef.current = [];
2322

2423
const channel = new MessageChannel();
2524
channel.port1.onmessage = () => {
26-
// console.log('!!! channel update !!!');
2725
unstable_batchedUpdates(() => {
2826
updateFuncRef.current.forEach(fn => {
2927
fn();
@@ -34,7 +32,6 @@ export function useBatcher() {
3432
channel.port2.postMessage(undefined);
3533
}
3634

37-
// console.log('push');
3835
updateFuncRef.current.push(callback);
3936
};
4037

0 commit comments

Comments
 (0)