fix: ssr memory leak, close #5501 #5502

This commit is contained in:
tangjinzhou 2022-04-23 09:48:03 +08:00
parent 04f3e0da21
commit fc9b52e6e7

View File

@ -1,4 +1,4 @@
let raf = (callback: FrameRequestCallback) => +setTimeout(callback, 16);
let raf = (callback: FrameRequestCallback) => setTimeout(callback, 16) as any;
let caf = (num: number) => clearTimeout(num);
if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {