-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Uncaught Error: Unexpected object passed to ReactTestInstance constructor (tag: 13). This is probably a bug in React. #12498
Comments
@acdlite What was the main reason it was stateful? |
I tried to make a reproducible case here, but it worked :) I'll close this issue for now, and when I managed to create a reproducible snippet fort the case I have, I'll share it again. But it would be good to hear more about if the new Contexts Providers can be safely used without any hidden state attached to the current fiber container. thanks for the great library! |
I'm seeing this error when switching to |
@sahrens You're sure you're using 16.4.0? If you can create a small repro case that would help. |
@gaearon: works after upgrading to 16.4 :) |
Although |
Can you prepare a test case please? Again, I wouldn’t expect to see this problem for any type. You shouldn’t need to work around it; I thought I fixed it. A full reproducing case would help me see what’s missing. |
For future searchers. I see this error with enzyme https://github.com/stereobooster/react-context-issue (I guess this is not an issue in React itself) |
Hello,
I'm testing v16.3.0 and I'm getting this warning:
My use case is that I wanted to render React Test Renderer (for ex) from a Component in an another (ReactDOM) renderer but it does not seem to work - I wanted to use same Provider in both containers.
I thought
React.createContext
create objects with no state and could be shared across renderers / Fiber containers.. Is there workaround for this? Are there any thoughts on this, Is this a definite behaviour?Following the warning, I eventually get the error message which I believe is related to the warning:
thank you for any guidance :)
The text was updated successfully, but these errors were encountered: