react-router-cache-route icon indicating copy to clipboard operation
react-router-cache-route copied to clipboard

结合history使用时报错Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node'

Open Ykey12 opened this issue 4 years ago • 6 comments

结合history使用时 会导致this.props.history.push失效,报错Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node. 急 谢谢

Ykey12 avatar Nov 21 '19 09:11 Ykey12

是不是启用了 unmount 属性?关掉试试

CJY0208 avatar Nov 21 '19 09:11 CJY0208

嗯嗯 有效果

Ykey12 avatar Nov 21 '19 09:11 Ykey12

嗯嗯,这个只是理论上节约一些性能,实际没测算过,可以不开

CJY0208 avatar Nov 21 '19 09:11 CJY0208

嗯嗯 谢谢大佬

Ykey12 avatar Nov 21 '19 09:11 Ykey12

nice 啊,在qiankun 微应用也碰到这个问题,mark一下

leehomeok avatar Jan 07 '22 11:01 leehomeok

unmount 装上以后 刷新还是会出现Uncaught NotFoundError: Failed to execute 'insertBefore' on 'Node'。如果不用ummount 在长列表下。影响性能+1

jiangshunke avatar May 30 '22 07:05 jiangshunke