Skip to content

Commit fc9b52e

Browse files
committed
fix: ssr memory leak, close #5501 #5502
1 parent 04f3e0d commit fc9b52e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/_util/raf.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
let raf = (callback: FrameRequestCallback) => +setTimeout(callback, 16);
1+
let raf = (callback: FrameRequestCallback) => setTimeout(callback, 16) as any;
22
let caf = (num: number) => clearTimeout(num);
33

44
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {

0 commit comments

Comments
 (0)