Sakuraki
Sakuraki
> It's a great suggestion, we'll add it in the future version. ahooks relies on the `resize-observer-polyfill package`, but the author of `resize-observer-polyfill` hasn't maintained it for a long time,...
> > It's a great suggestion, we'll add it in the future version. > > ahooks relies(依赖) on the `resize-observer-polyfill` package, but the author of `resize-observer-polyfill` hasn't maintained(保持) it for...
> > 但这是一个Break change。原因是`resize-observer-polyfill`这个库在计算时,是 content width + padding。 > > 这俩个库哪个是按照规范来的呢? > > 我看到 `@juggle/resize-observer` 是按照最新的规范来的,但是其 READMD 注明了最新的规范还没完成: 如果按照MDN当前定义的规范的话,@juggle/resize-observer 是符合规范来的。至少是支持options选项的。
let me try
 看文档的描述,其实删除就是还原,不知道是不是这个描述有问题?需要确认,是还原成默认值还是彻底删除。
let me try
[https://github.com/alibaba/hooks/pull/2592](url)
已经定位问题并修复,等确认这是个bug,我可以开一个PR。
I've submitted a PR to fix this issue: [#2594](https://github.com/alibaba/hooks/pull/2594)