-
Notifications
You must be signed in to change notification settings - Fork 801
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
Support React Context #979
Comments
In my app with 4.2.0, components nested in context Providers lose their state when hot reloading happens. Thank you very much for the awesome support. |
Yeah, that was a basic update. Unfortunately, RHL does not contain any context related tests, as long enzyme still does not support them, as result some bugs exists. So - the fix for your problem is almost ready - #983 |
@Cottin - click on |
When making changes in my react component, inside a context provider, I get errors on this line: 56fdd05#diff-56f32a77d9820e3b9dc60ca87529a61cR341 saying that props is undefined on the child variable. Changing this to if (isContextProvider(child)) {
extraContext = new Map(extraContext);
extraContext.set(getContextProvider(child.type), child.nextProps.value);
childName = 'ContextProvider';
} |
@theKashey All good, I'll use my hack until then. Good luck! |
Looks like 4.3.0 fixes this issue, can probably close this ticket now! |
👍 |
No description provided.
The text was updated successfully, but these errors were encountered: