Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add failing test case for nested components inside StrictMode #335
I encountered an error in an app that I'm working on and isolated it to the test case in this PR.
When you run the test, you get this error:
You can work around the error by:
The stack trace goes into
Maybe there's an unexpected side effect? If so, it could be helpful to fix this in order to work with the upcoming concurrent mode of React.
I had another look.
So the main issue is that here:
… the element is
It seems like in my test the variant changes from
In this code:
Is it intentional that it's
I'm struggling a bit to understand what
I feel like the inheritance of variants get's a bit in the way in this case, so I also opened #343 which is something I've encountered in a different scenario as well.