mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 05:14:54 +00:00
fix(core): use ResizeObserver polyfill (#6360)
- Close https://github.com/toeverything/AFFiNE/issues/6359
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
import { ResizeObserver } from '@juggle/resize-observer';
|
||||
|
||||
// prevents the following error in development mode:
|
||||
// ResizeOvserver loop limit exceeded
|
||||
// https://github.com/petyosi/react-virtuoso/issues/875#issuecomment-1962897033
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
window.ResizeObserver = ResizeObserver;
|
||||
}
|
||||
Reference in New Issue
Block a user