You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Help us to manage our issues by answering the following:
How would you tag this issue?
Bug
Describe your issue:
constThemeContext=createContext('light');functionMyContext(){return(<ThemeContext.Providervalue={'dark'}><MyComponent/></ThemeContext.Provider>);};functionMyComponent(){return(<ThemeContext.Consumer>{value=><div>{value}</div>}</ThemeContext.Consumer>);};functionMyContext2(){constvalue=useContext(ThemeContext);return<div>{value}</div>}functionMyComponent2(){return([<MyContext/>,<MyContext2/>]);};conststr=renderToString(<MyComponent2/>);// current output: <div>dark</div><div>dark</div>// expect to: <div>dark</div><div>light</div>.
The text was updated successfully, but these errors were encountered:
Help us to manage our issues by answering the following:
The text was updated successfully, but these errors were encountered: