Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如果内部是组件的ref是通过useImperativeHandle导出则会出现疯狂渲染 #263

Open
xmsz-stu opened this issue Apr 12, 2024 · 2 comments

Comments

@xmsz-stu
Copy link

const A = forwardref(prop,ref) => {
const ref2 = useRef();
  useImperativeHandle(ref,()=> ref2.current)
return <div ref={ref2}/>
}
@yoyo837
Copy link
Member

yoyo837 commented Apr 12, 2024

这里受关注少,请提供一个复现到antd主仓库创建一个issue.

@xmsz-stu
Copy link
Author

这里受关注少,请提供一个复现到antd主仓库创建一个issue.

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants