Skip to content

Commit 755a4cf

Browse files
committed
remove console logs
1 parent 5d3990f commit 755a4cf

3 files changed

Lines changed: 5 additions & 39 deletions

File tree

example/app/user/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ function UserProfile({ }) {
3333

3434
useEffect(() => {
3535
setUser("2pi3j3")
36-
})
36+
});
37+
3738
return <button onClick={() => sendEvent("User Profile Clicked", {
3839
name: "John Doe",
3940
email: "yeyy@clickme.com"

example/package-lock.json

Lines changed: 3 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dispatch-queue.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { BaselimeRumConfig } from "./context.tsx";
22

3-
4-
53
export class DispatchQueue {
64
queue: any[];
75
queueSize: 500;
@@ -15,19 +13,16 @@ export class DispatchQueue {
1513

1614
push(data) {
1715
this.queue.push(data);
18-
console.log('push', this.queue.length)
1916
if (this.queue.length >= this.queueSize) {
2017
if (this.timeout) {
2118
clearTimeout(this.timeout);
2219
this.timeout = null;
2320
}
24-
console.log('size exceeded: flush')
2521
return this.flush();
2622
}
2723

2824
if (!this.timeout) {
2925
this.timeout = setTimeout(() => {
30-
console.log('timeout: flush', this.queue.length)
3126
this.flush();
3227
this.timeout = null;
3328
}, this.duration)

0 commit comments

Comments
 (0)