Closed cater111 closed 3 years ago
connect的第四个参数{forwardRef : true}和{withRef : true}都用了,不好使。拿到的依然是被connect包裹的组件
connect 的第四个参数使用 {withRef: true}
后,获取到的 ref 对象包含一个 wrappedInstance
属性,就是被 connect 包裹的组件了 https://stackblitz.com/edit/dva-example-count-5yvkmz
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
connect的第四个参数{forwardRef : true}和{withRef : true}都用了,不好使。拿到的依然是被connect包裹的组件