xwchris
xwchris
发现一保存diff.js文件 parcel的热更新会无限执行 这是parcel hmr的bug吗
diffAttributes中的这一段好像不太对 ``` for ( let name in old ) { if ( !( name in attrs ) ) { setAttribute( dom, name, undefined ); } } ``` `for...in`循环数组循环的是`index`而不是数组的值,应该用`for...of`吧,还有`name in attrs`也是数组的`index`吧,要找name有没有在attrs是不是应该用`attrs.indexOf(name)...
same problem~
The source code seem not complicated. I think we can rewrite it for babel 7!
Have same problem, anyone resolved this?
I think I have find the problem, I will test the code and create a pr
@probablyup I made a demo in code sandbox, maybe you can get it. https://codesandbox.io/s/inspiring-wildflower-o2b0x?file=/src/App.js
it's still now working