fix: replace noop function (#2744)

This commit is contained in:
Himself65
2023-06-09 16:00:44 +08:00
committed by GitHub
parent 01ae21e1fa
commit af6f431c15
12 changed files with 37 additions and 12 deletions

View File

@@ -24,7 +24,7 @@ function rpcToObservable<
onSubscribe?.();
if (typeof window === 'undefined' || !env.isDesktop || !event) {
subscriber.complete();
return () => {};
return;
}
handler?.()
.then(t => {

View File

@@ -30,7 +30,7 @@ function useMouseOffset() {
el.removeEventListener('mouseleave', onMouseLeave);
};
}
return () => {};
return;
}, []);
return [offset, outside, ref] as const;