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

State not always up to date #36

Open
maxired opened this issue Nov 25, 2022 · 1 comment
Open

State not always up to date #36

maxired opened this issue Nov 25, 2022 · 1 comment

Comments

@maxired
Copy link

maxired commented Nov 25, 2022

Hi,

I am trying to trace the root cause of ant-design/ant-design#38818 ,
and I believe this is related to rc-motion, either being buggy on react-18, or maybe misused.

Here is a sandbox where I can repo the issue
https://codesandbox.io/s/small-moon-nigikp?file=/src/App.js

Screen.Recording.2022-11-25.at.09.19.59.mov

as you can see, the element does not seems to end up in the state it is supposed to be, as sometimes Parent is hovered, but child is not visible

@GaneshSrambikal
Copy link

Maybe passing the dependencies in the useEffect would do the work

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