fix: ssr memory leak, close #5501 #5502

pull/4757/head
tangjinzhou 3 years ago
parent 04f3e0da21
commit fc9b52e6e7

@ -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) {

Loading…
Cancel
Save