-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
React: Fix issue with react 18 implementation #19125
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it. Tests FTW!!!
@tmeasday what's going on with CI here? |
Oh, it needs to be updated with this commit: 1cb2f9d which is on the parent branches but hasn't made it in here yet. |
Since #18737 was just released in 6.5.11, should this fix be patched back to 6.5 as well? |
Yes! |
React: Fix issue with react 18 implementation
Very good job 👍 |
Follow up on #19118
Issue: When implementing a rendering story that checks a new button isn't created when setting an arg, I realised that I had actually broken things in #18737.
Now we have this story, we shouldn't be able to break things in this way again 🤞
What I did
Changed the react callback behaviour
How to test
useEffect
helper still works (there's ahooks.stories.ts
story for this)