{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/13150","repository_url":"https://api.github.com/repos/facebook/react","labels_url":"https://api.github.com/repos/facebook/react/issues/13150/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/13150/comments","events_url":"https://api.github.com/repos/facebook/react/issues/13150/events","html_url":"https://github.com/facebook/react/issues/13150","id":338355342,"node_id":"MDU6SXNzdWUzMzgzNTUzNDI=","number":13150,"title":"Enzyme + Context API = Warning: Detected multiple renderers concurrently rendering the same context provider","user":{"login":"stereobooster","id":179534,"node_id":"MDQ6VXNlcjE3OTUzNA==","avatar_url":"https://avatars2.githubusercontent.com/u/179534?v=4","gravatar_id":"","url":"https://api.github.com/users/stereobooster","html_url":"https://github.com/stereobooster","followers_url":"https://api.github.com/users/stereobooster/followers","following_url":"https://api.github.com/users/stereobooster/following{/other_user}","gists_url":"https://api.github.com/users/stereobooster/gists{/gist_id}","starred_url":"https://api.github.com/users/stereobooster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereobooster/subscriptions","organizations_url":"https://api.github.com/users/stereobooster/orgs","repos_url":"https://api.github.com/users/stereobooster/repos","events_url":"https://api.github.com/users/stereobooster/events{/privacy}","received_events_url":"https://api.github.com/users/stereobooster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-04T18:43:22Z","updated_at":"2018-07-06T12:35:17Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  Note: if the issue is about documentation or the website, please file it at:\r\n  https://github.com/reactjs/reactjs.org/issues/new\r\n-->\r\n\r\n**Do you want to request a *feature* or report a *bug*?** Bug, I guess\r\n\r\n**What is the current behavior?** \r\n\r\n\r\n```\r\n  console.error node_modules/fbjs/lib/warning.js:33\r\n    Warning: Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.\r\n```\r\n\r\n**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:**\r\n\r\nSteps to reproduce the behavior:\r\n1. `git clone https://github.com/stereobooster/react-context-issue`\r\n2. `cd react-context-issue`\r\n3. `yarn`\r\n4. `yarn test`\r\n\r\n**What is the expected behavior?** no warning\r\n\r\n**Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?** React 16.4. Browser not affected, because error is in node.js\r\n\r\nOpen this because of https://github.com/facebook/react/pull/13127#issuecomment-402527012\r\n\r\nIssue happens because of Enzyme (https://github.com/airbnb/enzyme/issues/1693), code is unreleased, so I copy-pasted it from master. \r\n\r\nI'm looking for advice or some clue on how to fix this, so I would be able to create PR in Enzyme repo (or in React repo if this is the case). Thank you.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/403021102","html_url":"https://github.com/facebook/react/issues/13150#issuecomment-403021102","issue_url":"https://api.github.com/repos/facebook/react/issues/13150","id":403021102,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzAyMTEwMg==","user":{"login":"stereobooster","id":179534,"node_id":"MDQ6VXNlcjE3OTUzNA==","avatar_url":"https://avatars2.githubusercontent.com/u/179534?v=4","gravatar_id":"","url":"https://api.github.com/users/stereobooster","html_url":"https://github.com/stereobooster","followers_url":"https://api.github.com/users/stereobooster/followers","following_url":"https://api.github.com/users/stereobooster/following{/other_user}","gists_url":"https://api.github.com/users/stereobooster/gists{/gist_id}","starred_url":"https://api.github.com/users/stereobooster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stereobooster/subscriptions","organizations_url":"https://api.github.com/users/stereobooster/orgs","repos_url":"https://api.github.com/users/stereobooster/repos","events_url":"https://api.github.com/users/stereobooster/events{/privacy}","received_events_url":"https://api.github.com/users/stereobooster/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T12:35:17Z","updated_at":"2018-07-06T12:35:17Z","author_association":"NONE","body":"Huh. I figured out what the issue here. It happens when you use `\"react-test-renderer\"` and Enzyme's `mount` in the same test file. Not sure if it is needed to be fixed..."}}
{"actor":{"display_login":"stereobooster"}}