Browse Source

fix: ssr memory leak, close #5501 #5502

pull/4757/head
tangjinzhou 3 years ago
parent
commit
fc9b52e6e7
  1. 2
      components/_util/raf.ts

2
components/_util/raf.ts

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