Skip to content

Commit 920a89e

Browse files
committed
chore: remove console.log
1 parent 445f7c7 commit 920a89e

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

packages/core/src/controller.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ export class UrlStateController implements UrlStateControllerInterface {
4848
const search = urlParamsToObject(newSearchParams);
4949
setTimeout(() => fn(search), 0);
5050

51-
console.log('poll');
52-
console.log('Interval', this.interval);
5351
if (!this.interval) {
5452
this.startPolling();
5553
}
@@ -58,15 +56,12 @@ export class UrlStateController implements UrlStateControllerInterface {
5856
unsubscribe(fn: Callback): void {
5957
this.subscribers.delete(fn);
6058

61-
console.log('Stop polling');
62-
6359
if (this.subscribers.size === 0) {
6460
this.stopPolling();
6561
}
6662
}
6763

6864
onSearchParamsChange(): void {
69-
console.log(this.previousHref, window.location.href);
7065
if (window.location.href !== this.previousHref) {
7166
this.previousHref = window.location.href;
7267

packages/core/src/utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ function shallowEqual<T>(a: T, b: T) {
7171
export function useShallowEqualValue<T>(value: T) {
7272
const ref = useRef(value);
7373
if (!shallowEqual(value, ref.current)) {
74-
console.log('not equal');
7574
ref.current = value;
7675
}
7776
return ref.current;

0 commit comments

Comments
 (0)