Guanghui Qin

Results 6 comments of Guanghui Qin
trafficstars

> Another workaround [testing-library/jest-dom#427 (comment)](https://github.com/testing-library/jest-dom/issues/427#issuecomment-1110985202) That's work for me!

> Hey Muhku, > I'm trying to get a streamed / cached item to loop once it reaches the end "seamlessly" / with no gap. I've tried just calling play...

请问现在这个问题有解决方案吗?还是存在应用卸载后占用内存的问题。当应用过多时,多次切换应用后内存越来越大,最终会导致页面加载越来越慢。

可以参考下源码里的 toc 实现,通过插件在 rehype 阶段可以拿到所有的 h 标签。

感觉 iframe dom 割裂带来的潜在问题还是比较多的,所以目前项目里暂时还没打算采用 iframe。之前也有过运行 iframe 模式,但出现 head 循环渲染之类的问题,相比之下感觉 with 模式更稳定一些。 with 模式下我的理解是这样的: ```jsx ``` 其中 App1 和 App2 采用的是 proxyWindow,所以 App1 修改 window 是不会影响到 App2 的。但是 MainApp 里直接修改的是全局 window,会影响到...

> 并不清楚CRA里带 好像是打断点调试然后刷新界面出现这个问题的,不打断点能正常运行,暂时定位不到哪出的问题,很奇怪。