url
stringlengths 56
56
| repository_url
stringclasses 1
value | labels_url
stringlengths 70
70
| comments_url
stringlengths 65
65
| events_url
stringlengths 63
63
| html_url
stringlengths 44
46
| id
int64 570M
2.28B
| node_id
stringlengths 18
32
| number
int64 18.1k
29k
| title
stringlengths 1
570
| user
stringlengths 854
1.31k
| labels
stringclasses 293
values | state
stringclasses 2
values | locked
bool 2
classes | assignee
stringclasses 263
values | assignees
stringclasses 287
values | milestone
float64 | comments
sequencelengths 0
30
| created_at
stringlengths 19
19
| updated_at
stringlengths 19
19
| closed_at
stringlengths 19
19
⌀ | author_association
stringclasses 4
values | active_lock_reason
stringclasses 3
values | draft
bool 2
classes | pull_request
stringlengths 277
316
⌀ | body
stringlengths 1
43.2k
⌀ | reactions
stringlengths 189
198
| timeline_url
stringlengths 65
65
| performed_via_github_app
float64 | state_reason
stringclasses 3
values | is_pull_request
bool 2
classes |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/facebook/react/issues/18234 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18234/labels{/name} | https://api.github.com/repos/facebook/react/issues/18234/comments | https://api.github.com/repos/facebook/react/issues/18234/events | https://github.com/facebook/react/pull/18234 | 576,719,751 | MDExOlB1bGxSZXF1ZXN0Mzg0NjUxMjIz | 18,234 | Add test run that uses www feature flags | {'login': 'acdlite', 'id': 3624098, 'node_id': 'MDQ6VXNlcjM2MjQwOTg=', 'avatar_url': 'https://avatars.githubusercontent.com/u/3624098?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/acdlite', 'html_url': 'https://github.com/acdlite', 'followers_url': 'https://api.github.com/users/acdlite/followers', 'following_url': 'https://api.github.com/users/acdlite/following{/other_user}', 'gists_url': 'https://api.github.com/users/acdlite/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/acdlite/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/acdlite/subscriptions', 'organizations_url': 'https://api.github.com/users/acdlite/orgs', 'repos_url': 'https://api.github.com/users/acdlite/repos', 'events_url': 'https://api.github.com/users/acdlite/events{/privacy}', 'received_events_url': 'https://api.github.com/users/acdlite/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18234/builds/13578) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 89ba9114ec7fa6d1f502f38219186bf085eb9607:\n\n|Sandbox| Source |\n|--|--|\n|[confident-shannon-6b5zg](https://codesandbox.io/s/confident-shannon-6b5zg)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 4027f2a3b82ecc325224f7827fc2c8e71a284279...89ba9114ec7fa6d1f502f38219186bf085eb9607</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-dev.js | +0.5% | +0.6% | 907.29 KB | 911.46 KB | 202.52 KB | 203.64 KB | FB_WWW_DEV\nReactDOMServer-dev.js | +0.2% | +0.1% | 137.4 KB | 137.64 KB | 35.11 KB | 35.16 KB | FB_WWW_DEV\nReactDOMTesting-dev.js | 0.0% | 0.0% | 873.31 KB | 873.31 KB | 195.61 KB | 195.61 KB | FB_WWW_DEV\nreact-dom-server.node.development.js | 0.0% | -0.0% | 131.08 KB | 131.08 KB | 34.83 KB | 34.83 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\nreact-dom.development.js | 0.0% | 0.0% | 914.35 KB | 914.35 KB | 200.16 KB | 200.16 KB | UMD_DEV\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 136.87 KB | 136.87 KB | 34.99 KB | 34.99 KB | UMD_DEV\nReactTestUtils-dev.js | +0.5% | +0.4% | 51.37 KB | 51.61 KB | 13.72 KB | 13.77 KB | FB_WWW_DEV\nreact-dom.development.js | 0.0% | 0.0% | 870.34 KB | 870.34 KB | 197.7 KB | 197.7 KB | NODE_DEV\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 129.87 KB | 129.87 KB | 34.58 KB | 34.58 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **120.04 KB** | **120.04 KB** | **37.53 KB** | **37.52 KB** | **NODE_PROD**\n**ReactDOM-prod.js** | **0.0%** | **0.0%** | **376.26 KB** | **376.34 KB** | **68.37 KB** | **68.38 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | 0.0% | 0.0% | 387.95 KB | 388.04 KB | 70.54 KB | 70.55 KB | FB_WWW_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.87 KB | 55.87 KB | 14.47 KB | 14.47 KB | NODE_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **10 KB** | **10 KB** | **3.37 KB** | **3.38 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **-0.2%** | **1.16 KB** | **1.16 KB** | **663 B** | **662 B** | **NODE_PROD**\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-art.development.js | 0.0% | 0.0% | 635.52 KB | 635.52 KB | 133.57 KB | 133.57 KB | UMD_DEV\n**react-art.production.min.js** | **0.0%** | **0.0%** | **106.64 KB** | **106.64 KB** | **32.25 KB** | **32.25 KB** | **UMD_PROD**\nreact-art.development.js | 0.0% | 0.0% | 539.67 KB | 539.67 KB | 115.97 KB | 115.97 KB | NODE_DEV\nReactART-dev.js | +0.8% | +1.0% | 543.41 KB | 547.59 KB | 114.11 KB | 115.26 KB | FB_WWW_DEV\n**ReactART-prod.js** | **0.0%** | **0.0%** | **226.66 KB** | **226.7 KB** | **38.52 KB** | **38.53 KB** | **FB_WWW_PROD**\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 89ba9114ec7fa6d1f502f38219186bf085eb9607\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 4027f2a3b82ecc325224f7827fc2c8e71a284279...89ba9114ec7fa6d1f502f38219186bf085eb9607</p>\n\n\n \n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactART-dev.js | +0.8% | +0.9% | 569.13 KB | 573.42 KB | 119.38 KB | 120.51 KB | FB_WWW_DEV\n**ReactART-prod.js** | **0.0%** | **0.0%** | **233.84 KB** | **233.88 KB** | **39.73 KB** | **39.74 KB** | **FB_WWW_PROD**\nreact-art.development.js | 0.0% | 0.0% | 616.35 KB | 616.35 KB | 130.17 KB | 130.17 KB | UMD_DEV\nreact-art.development.js | 0.0% | 0.0% | 521.24 KB | 521.25 KB | 112.53 KB | 112.53 KB | NODE_DEV\n\n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | 0.0% | 0.0% | 412.95 KB | 413.03 KB | 75.11 KB | 75.12 KB | FB_WWW_PROFILING\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 135.28 KB | 135.28 KB | 34.78 KB | 34.79 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **-0.2%** | **1.15 KB** | **1.15 KB** | **654 B** | **653 B** | **NODE_PROD**\nReactTestUtils-dev.js | +0.5% | +0.4% | 51.38 KB | 51.62 KB | 13.71 KB | 13.76 KB | FB_WWW_DEV\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\nreact-dom.development.js | 0.0% | 0.0% | 885.67 KB | 885.67 KB | 195.23 KB | 195.23 KB | UMD_DEV\nreact-dom.development.js | 0.0% | 0.0% | 842.84 KB | 842.85 KB | 192.79 KB | 192.79 KB | NODE_DEV\nreact-dom-server.node.development.js | 0.0% | -0.0% | 129.57 KB | 129.57 KB | 34.61 KB | 34.61 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **116.09 KB** | **116.09 KB** | **36.5 KB** | **36.5 KB** | **NODE_PROD**\nReactDOM-dev.js | +0.5% | +0.5% | 950.85 KB | 955.14 KB | 212.11 KB | 213.25 KB | FB_WWW_DEV\n**ReactDOM-prod.js** | **0.0%** | **0.0%** | **401.18 KB** | **401.26 KB** | **72.85 KB** | **72.86 KB** | **FB_WWW_PROD**\nReactDOMTesting-dev.js | 0.0% | 0.0% | 899.95 KB | 899.95 KB | 201.19 KB | 201.19 KB | FB_WWW_DEV\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 128.35 KB | 128.35 KB | 34.36 KB | 34.36 KB | NODE_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 53.77 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\nReactDOMServer-dev.js | +0.2% | +0.1% | 138.25 KB | 138.5 KB | 35.25 KB | 35.3 KB | FB_WWW_DEV\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.1% | 2.94 KB | 2.94 KB | 1.17 KB | 1.17 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 89ba9114ec7fa6d1f502f38219186bf085eb9607\n</p>\n"
] | 2020-03-06 06:09:27 | 2020-03-06 18:05:07 | 2020-03-06 17:29:06 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18234', 'html_url': 'https://github.com/facebook/react/pull/18234', 'diff_url': 'https://github.com/facebook/react/pull/18234.diff', 'patch_url': 'https://github.com/facebook/react/pull/18234.patch', 'merged_at': datetime.datetime(2020, 3, 6, 17, 29, 6)} | In CI, we run our test suite against multiple build configurations. For example, we run our tests in both dev and prod, and in both the experimental and stable release channels. This is to prevent accidental deviations in behavior between the different builds. If there's an intentional deviation in behavior, the test author must account for them.
However, we currently don't run tests against the www builds. That's a problem, because it's common for features to land in www before they land anywhere else, including the experimental release channel. Typically we do this so we can gradually roll out the feature behind a flag before deciding to enable it.
The way we test those features today is by mutating the `shared/ReactFeatureFlags` module. There are a few downsides to this approach, though. The flag is only overridden for the specific tests or test suites where you apply the override. But usually what you want is to run *all* tests with the flag enabled, to protect against unexpected regressions.
Also, mutating the feature flags module only works when running the tests against source, not against the final build artifacts, because the ReactFeatureFlags module is inlined by the build script.
Instead, we should run the test suite against the www configuration, just like we do for prod, experimental, and so on. I've added a new command, `yarn test-www`. It automatically runs in CI.
Some of the www feature flags are dynamic; that is, they depend on a runtime condition (i.e. a GK). These flags are imported from an external module that lives in www. Those flags will be enabled for some clients and disabled for others, so we should run the tests against *both* modes.
So I've added a new global `__VARIANT__`, and a new test command `yarn test-www-variant`. `__VARIANT__` is set to false by default; when running `test-www-variant`, it's set to true.
If we were going for *really* comprehensive coverage, we would run the tests against every possible configuration of feature flags: 2 ^ numberOfFlags total combinations. That's not practical, though, so instead we only run against two combinations: once with `__VARIANT__` set to `true`, and once with it set to `false`. We generally assume that flags can be toggled independently, so in practice this should be enough.
You can also refer to `__VARIANT__` in tests to detect which mode you're running in. Or, you can import `shared/ReactFeatureFlags` and read the specific flag you can about. However, we should stop mutating that module going forward. Treat it as read-only.
In this commit, I have only setup the www tests to run against source. I'll leave running against build for a follow up.
Many of our tests currently assume they run only in the default configuration, and break when certain flags are toggled. Rather than fix these all up front, I've hard-coded the relevant flags to the default values. We can incrementally migrate those tests later. | {'url': 'https://api.github.com/repos/facebook/react/issues/18234/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18234/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18233 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18233/labels{/name} | https://api.github.com/repos/facebook/react/issues/18233/comments | https://api.github.com/repos/facebook/react/issues/18233/events | https://github.com/facebook/react/pull/18233 | 576,564,830 | MDExOlB1bGxSZXF1ZXN0Mzg0NTI4NTE5 | 18,233 | [React Native] Add getInspectorDataForViewAtPoint | {'login': 'rickhanlonii', 'id': 2440089, 'node_id': 'MDQ6VXNlcjI0NDAwODk=', 'avatar_url': 'https://avatars.githubusercontent.com/u/2440089?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/rickhanlonii', 'html_url': 'https://github.com/rickhanlonii', 'followers_url': 'https://api.github.com/users/rickhanlonii/followers', 'following_url': 'https://api.github.com/users/rickhanlonii/following{/other_user}', 'gists_url': 'https://api.github.com/users/rickhanlonii/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/rickhanlonii/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/rickhanlonii/subscriptions', 'organizations_url': 'https://api.github.com/users/rickhanlonii/orgs', 'repos_url': 'https://api.github.com/users/rickhanlonii/repos', 'events_url': 'https://api.github.com/users/rickhanlonii/events{/privacy}', 'received_events_url': 'https://api.github.com/users/rickhanlonii/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 024a764310e64ef38963df16970364b9942a60cd...aa3719acd23e36924f8d9dfac40c8bd555751ee0</p>\n\n\n \n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-dev.js | +0.7% | +0.5% | 615.72 KB | 619.82 KB | 133.15 KB | 133.8 KB | RN_OSS_DEV\nReactNativeRenderer-dev.js | +0.7% | +0.5% | 633.61 KB | 637.87 KB | 137.47 KB | 138.14 KB | RN_OSS_DEV\n**ReactNativeRenderer-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.2%** | **259.8 KB** | **260.13 KB** | **45.2 KB** | **45.27 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | +0.1% | +0.1% | 271.59 KB | 271.92 KB | 47.44 KB | 47.5 KB | RN_OSS_PROFILING\n**ReactFabric-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **251.76 KB** | **251.96 KB** | **43.71 KB** | **43.75 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | +0.1% | +0.1% | 263.56 KB | 263.76 KB | 45.98 KB | 46.01 KB | RN_OSS_PROFILING\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against aa3719acd23e36924f8d9dfac40c8bd555751ee0\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 024a764310e64ef38963df16970364b9942a60cd...aa3719acd23e36924f8d9dfac40c8bd555751ee0</p>\n\n\n \n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**ReactNativeRenderer-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.2%** | **259.81 KB** | **260.14 KB** | **45.21 KB** | **45.28 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | +0.1% | +0.1% | 271.61 KB | 271.94 KB | 47.45 KB | 47.51 KB | RN_OSS_PROFILING\n**ReactFabric-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **251.77 KB** | **251.97 KB** | **43.72 KB** | **43.75 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | +0.1% | +0.1% | 263.57 KB | 263.77 KB | 45.99 KB | 46.02 KB | RN_OSS_PROFILING\nReactFabric-dev.js | +0.7% | +0.5% | 618.36 KB | 622.47 KB | 133.49 KB | 134.14 KB | RN_FB_DEV\n**ReactFabric-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **251.93 KB** | **252.13 KB** | **43.75 KB** | **43.78 KB** | **RN_FB_PROD**\nReactNativeRenderer-dev.js | +0.7% | +0.5% | 633.63 KB | 637.88 KB | 137.47 KB | 138.15 KB | RN_OSS_DEV\nReactFabric-profiling.js | +0.1% | +0.1% | 263.72 KB | 263.92 KB | 46.02 KB | 46.06 KB | RN_FB_PROFILING\nReactNativeRenderer-dev.js | +0.7% | +0.5% | 636.25 KB | 640.51 KB | 137.81 KB | 138.48 KB | RN_FB_DEV\n**ReactNativeRenderer-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.2%** | **259.96 KB** | **260.28 KB** | **45.23 KB** | **45.3 KB** | **RN_FB_PROD**\nReactNativeRenderer-profiling.js | +0.1% | +0.1% | 271.75 KB | 272.08 KB | 47.48 KB | 47.54 KB | RN_FB_PROFILING\nReactFabric-dev.js | +0.7% | +0.5% | 615.73 KB | 619.84 KB | 133.16 KB | 133.81 KB | RN_OSS_DEV\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against aa3719acd23e36924f8d9dfac40c8bd555751ee0\n</p>\n",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18233/builds/14290) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit aa3719acd23e36924f8d9dfac40c8bd555751ee0:\n\n|Sandbox| Source |\n|--|--|\n|[trusting-chaum-vgmil](https://codesandbox.io/s/trusting-chaum-vgmil)| Configuration |\n",
"I reverted this to unblock the sync but it's probably an easy fix. Feel free to reland after fixing the Flow errors etc."
] | 2020-03-05 22:16:54 | 2020-03-24 21:37:04 | 2020-03-11 16:12:41 | MEMBER | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18233', 'html_url': 'https://github.com/facebook/react/pull/18233', 'diff_url': 'https://github.com/facebook/react/pull/18233.diff', 'patch_url': 'https://github.com/facebook/react/pull/18233.patch', 'merged_at': datetime.datetime(2020, 3, 11, 16, 12, 41)} | ## Summary
This diff adds `getInspectorDataForViewAtPoint`, accessible through the DevTools hook, which provides an interface to return inspector data about the view touched at a given point. This allows the React Native inspector to ask React for information about a view at an x,y touch point without any knowledge of how each renderer gets the information.
## Implementation
**Paper**
For Paper we've just moved the logic from the [InspectorOverlay](https://github.com/facebook/react-native/blob/c3d072955024824d7ff6113fc9f642d25c462f16/Libraries/Inspector/InspectorOverlay.js#L40-L50) into React Core. This will allow us to delete `getInspectorDataForViewTag` called [here](https://github.com/facebook/react-native/blob/c3d072955024824d7ff6113fc9f642d25c462f16/Libraries/Inspector/Inspector.js#L61) which is necessary since Fabric does not support React tags.
**Fabric**
For Fabric we add a new strategy which queries native for a node using `findNodeAtPoint`, passes the shadow node to `measure`, and then asks React for the fiber information.
## Test Plan
<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. -->
- Manually tested in Fabric and Paper for React Native. | {'url': 'https://api.github.com/repos/facebook/react/issues/18233/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18233/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18232 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18232/labels{/name} | https://api.github.com/repos/facebook/react/issues/18232/comments | https://api.github.com/repos/facebook/react/issues/18232/events | https://github.com/facebook/react/pull/18232 | 576,502,731 | MDExOlB1bGxSZXF1ZXN0Mzg0NDc3MTIy | 18,232 | Fix yarn warning on running 'yarn build-for-devtools' | {'login': 'kerolloz', 'id': 36763164, 'node_id': 'MDQ6VXNlcjM2NzYzMTY0', 'avatar_url': 'https://avatars.githubusercontent.com/u/36763164?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/kerolloz', 'html_url': 'https://github.com/kerolloz', 'followers_url': 'https://api.github.com/users/kerolloz/followers', 'following_url': 'https://api.github.com/users/kerolloz/following{/other_user}', 'gists_url': 'https://api.github.com/users/kerolloz/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/kerolloz/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/kerolloz/subscriptions', 'organizations_url': 'https://api.github.com/users/kerolloz/orgs', 'repos_url': 'https://api.github.com/users/kerolloz/repos', 'events_url': 'https://api.github.com/users/kerolloz/events{/privacy}', 'received_events_url': 'https://api.github.com/users/kerolloz/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"Hi @kerolloz! \n\nThank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.\n\nIn order for us to review and merge your code, please sign at <https://code.facebook.com/cla>. **If you are contributing on behalf of someone else (eg your employer)**, the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.\n\nIf you have received this in error or have any questions, please contact us at [cla@fb.com](mailto:cla@fb.com?subject=CLA%20for%20facebook%2Freact%20%2318232). Thanks!",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18232/builds/13488) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 95ec98e17ca6200a5cb08a67920e690b6c5050a1:\n\n|Sandbox| Source |\n|--|--|\n|[little-wave-2q723](https://codesandbox.io/s/little-wave-2q723)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 95ec98e17ca6200a5cb08a67920e690b6c5050a1\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 95ec98e17ca6200a5cb08a67920e690b6c5050a1\n</p>\n",
"Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!",
"Looks good to me. Thank you for your PR!"
] | 2020-03-05 20:11:22 | 2020-03-10 15:37:04 | 2020-03-10 15:37:03 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18232', 'html_url': 'https://github.com/facebook/react/pull/18232', 'diff_url': 'https://github.com/facebook/react/pull/18232.diff', 'patch_url': 'https://github.com/facebook/react/pull/18232.patch', 'merged_at': datetime.datetime(2020, 3, 10, 15, 37, 3)} | fixes #18231
## Summary
Remove the "--" in `yarn build-for-devtools` script
| {'url': 'https://api.github.com/repos/facebook/react/issues/18232/reactions', 'total_count': 1, '+1': 1, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18232/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18231 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18231/labels{/name} | https://api.github.com/repos/facebook/react/issues/18231/comments | https://api.github.com/repos/facebook/react/issues/18231/events | https://github.com/facebook/react/issues/18231 | 576,501,637 | MDU6SXNzdWU1NzY1MDE2Mzc= | 18,231 | Warning: Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded | {'login': 'kerolloz', 'id': 36763164, 'node_id': 'MDQ6VXNlcjM2NzYzMTY0', 'avatar_url': 'https://avatars.githubusercontent.com/u/36763164?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/kerolloz', 'html_url': 'https://github.com/kerolloz', 'followers_url': 'https://api.github.com/users/kerolloz/followers', 'following_url': 'https://api.github.com/users/kerolloz/following{/other_user}', 'gists_url': 'https://api.github.com/users/kerolloz/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/kerolloz/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/kerolloz/subscriptions', 'organizations_url': 'https://api.github.com/users/kerolloz/orgs', 'repos_url': 'https://api.github.com/users/kerolloz/repos', 'events_url': 'https://api.github.com/users/kerolloz/events{/privacy}', 'received_events_url': 'https://api.github.com/users/kerolloz/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [] | 2020-03-05 20:09:13 | 2020-03-10 15:37:03 | 2020-03-10 15:37:03 | CONTRIBUTOR | null | null | null | <!--
Please provide a clear and concise description of what the bug is. Include
screenshots if needed. Please test using the latest version of the relevant
React packages to make sure your issue has not already been fixed.
-->
warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
## Steps To Reproduce
1. `yarn build-for-devtools`
## The current behavior
![image](https://user-images.githubusercontent.com/36763164/76021289-b69b0080-5f2d-11ea-81d6-711faf39e6da.png)
## The expected behavior
![image](https://user-images.githubusercontent.com/36763164/76021328-c7e40d00-5f2d-11ea-9ba3-df51c0b86cef.png)
| {'url': 'https://api.github.com/repos/facebook/react/issues/18231/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18231/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18230 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18230/labels{/name} | https://api.github.com/repos/facebook/react/issues/18230/comments | https://api.github.com/repos/facebook/react/issues/18230/events | https://github.com/facebook/react/pull/18230 | 576,492,016 | MDExOlB1bGxSZXF1ZXN0Mzg0NDY4MTU4 | 18,230 | Enable enableProfilerCommitHooks flag for FB | {'login': 'bvaughn', 'id': 29597, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18230/builds/13486) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 266d7e1db2675f15c1612d4a068237e02fdf4123:\n\n|Sandbox| Source |\n|--|--|\n|[currying-wave-3nq51](https://codesandbox.io/s/currying-wave-3nq51)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 024a764310e64ef38963df16970364b9942a60cd...266d7e1db2675f15c1612d4a068237e02fdf4123</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | 0.0% | -0.0% | 124.01 KB | 124.01 KB | 38.69 KB | 38.69 KB | NODE_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 58.91 KB | 58.91 KB | 14.71 KB | 14.71 KB | UMD_DEV\nReactDOM-dev.js | +0.8% | +0.5% | 906.87 KB | 914.41 KB | 202.42 KB | 203.49 KB | FB_WWW_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **10.27 KB** | **10.27 KB** | **3.5 KB** | **3.5 KB** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | -0.0% | 137.31 KB | 137.31 KB | 35.08 KB | 35.08 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 53.78 KB | 53.78 KB | 14.01 KB | 14.01 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.96 KB** | **10.96 KB** | **4.17 KB** | **4.17 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | 0.0% | -0.0% | 872.9 KB | 872.9 KB | 195.5 KB | 195.49 KB | FB_WWW_DEV\nreact-dom-server.node.development.js | 0.0% | -0.0% | 131 KB | 131 KB | 34.81 KB | 34.81 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **-0.0%** | **20.83 KB** | **20.83 KB** | **7.61 KB** | **7.61 KB** | **NODE_PROD**\nreact-dom.development.js | 0.0% | -0.0% | 914.01 KB | 914.01 KB | 200.07 KB | 200.07 KB | UMD_DEV\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 136.78 KB | 136.78 KB | 34.96 KB | 34.96 KB | UMD_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **119.89 KB** | **119.89 KB** | **38.28 KB** | **38.28 KB** | **UMD_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.0%** | **20.51 KB** | **20.51 KB** | **7.51 KB** | **7.51 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | -0.0% | 123.71 KB | 123.71 KB | 39.54 KB | 39.53 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | -0.0% | 870.01 KB | 870.01 KB | 197.61 KB | 197.61 KB | NODE_DEV\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 129.78 KB | 129.78 KB | 34.55 KB | 34.55 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **120.04 KB** | **120.04 KB** | **37.53 KB** | **37.52 KB** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.0%** | **20.43 KB** | **20.43 KB** | **7.46 KB** | **7.46 KB** | **NODE_PROD**\nReactDOM-profiling.js | +1.4% | +1.2% | 387.95 KB | 393.52 KB | 70.54 KB | 71.37 KB | FB_WWW_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 55.87 KB | 55.87 KB | 14.47 KB | 14.47 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | -0.1% | 3.69 KB | 3.69 KB | 1.34 KB | 1.34 KB | NODE_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **10 KB** | **10 KB** | **3.38 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **-0.3%** | **1.16 KB** | **1.16 KB** | **664 B** | **662 B** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.2% | 3.35 KB | 3.35 KB | 1.27 KB | 1.27 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.1%** | **1.19 KB** | **1.19 KB** | **700 B** | **699 B** | **UMD_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.2% | 2.95 KB | 2.95 KB | 1.18 KB | 1.18 KB | NODE_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.2%** | **1 KB** | **1 KB** | **611 B** | **610 B** | **NODE_PROD**\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-art.development.js | 0.0% | -0.0% | 635.35 KB | 635.35 KB | 133.49 KB | 133.49 KB | UMD_DEV\n**react-art.production.min.js** | **0.0%** | **-0.0%** | **106.64 KB** | **106.64 KB** | **32.25 KB** | **32.25 KB** | **UMD_PROD**\nreact-art.development.js | 0.0% | -0.0% | 539.5 KB | 539.5 KB | 115.89 KB | 115.89 KB | NODE_DEV\n**react-art.production.min.js** | **0.0%** | **-0.0%** | **71.62 KB** | **71.62 KB** | **21.44 KB** | **21.44 KB** | **NODE_PROD**\nReactART-dev.js | +1.4% | +1.0% | 543.15 KB | 550.69 KB | 114.02 KB | 115.16 KB | FB_WWW_DEV\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: -0.0%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 266d7e1db2675f15c1612d4a068237e02fdf4123\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 024a764310e64ef38963df16970364b9942a60cd...266d7e1db2675f15c1612d4a068237e02fdf4123</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | +1.3% | +1.1% | 412.95 KB | 418.49 KB | 75.11 KB | 75.91 KB | FB_WWW_PROFILING\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 135.19 KB | 135.19 KB | 34.76 KB | 34.75 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **-0.3%** | **1.15 KB** | **1.15 KB** | **655 B** | **653 B** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.0%** | **20.05 KB** | **20.05 KB** | **7.42 KB** | **7.42 KB** | **UMD_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\nreact-dom.development.js | 0.0% | -0.0% | 885.33 KB | 885.33 KB | 195.14 KB | 195.14 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **9.99 KB** | **9.99 KB** | **3.37 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **116.01 KB** | **116.01 KB** | **37.17 KB** | **37.18 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | -0.0% | 119.72 KB | 119.72 KB | 38.39 KB | 38.39 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | -0.0% | 842.51 KB | 842.51 KB | 192.7 KB | 192.7 KB | NODE_DEV\nreact-dom-server.node.development.js | 0.0% | -0.0% | 129.48 KB | 129.48 KB | 34.59 KB | 34.58 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **116.09 KB** | **116.09 KB** | **36.5 KB** | **36.5 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **-0.0%** | **20.38 KB** | **20.38 KB** | **7.53 KB** | **7.53 KB** | **NODE_PROD**\nreact-dom.profiling.min.js | 0.0% | -0.0% | 119.95 KB | 119.95 KB | 37.63 KB | 37.63 KB | NODE_PROFILING\nReactDOM-dev.js | +0.8% | +0.5% | 950.44 KB | 957.97 KB | 212.01 KB | 213.07 KB | FB_WWW_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | -0.1% | 3.68 KB | 3.68 KB | 1.33 KB | 1.33 KB | NODE_DEV\nReactDOMTesting-dev.js | 0.0% | -0.0% | 899.54 KB | 899.54 KB | 201.04 KB | 201.04 KB | FB_WWW_DEV\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 128.27 KB | 128.27 KB | 34.33 KB | 34.33 KB | NODE_DEV\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 53.77 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.0%** | **19.97 KB** | **19.97 KB** | **7.38 KB** | **7.38 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.2% | 3.34 KB | 3.34 KB | 1.26 KB | 1.26 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.94 KB** | **10.94 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.3%** | **1.17 KB** | **1.17 KB** | **692 B** | **690 B** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | -0.0% | 138.16 KB | 138.16 KB | 35.22 KB | 35.22 KB | FB_WWW_DEV\n**ReactDOMServer-prod.js** | **0.0%** | **-0.0%** | **47.49 KB** | **47.49 KB** | **11.05 KB** | **11.05 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.3% | 2.94 KB | 2.94 KB | 1.17 KB | 1.17 KB | NODE_DEV\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.2%** | **1013 B** | **1013 B** | **603 B** | **602 B** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **10.26 KB** | **10.26 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactART-dev.js | +1.3% | +1.0% | 568.87 KB | 576.4 KB | 119.3 KB | 120.44 KB | FB_WWW_DEV\n**ReactART-prod.js** | **0.0%** | **0.0%** | **233.84 KB** | **233.84 KB** | **39.73 KB** | **39.74 KB** | **FB_WWW_PROD**\nreact-art.development.js | 0.0% | -0.0% | 616.17 KB | 616.17 KB | 130.09 KB | 130.09 KB | UMD_DEV\n**react-art.production.min.js** | **0.0%** | **-0.0%** | **104.21 KB** | **104.21 KB** | **31.61 KB** | **31.61 KB** | **UMD_PROD**\nreact-art.development.js | 0.0% | -0.0% | 521.07 KB | 521.07 KB | 112.45 KB | 112.45 KB | NODE_DEV\n**react-art.production.min.js** | **0.0%** | **-0.0%** | **69.25 KB** | **69.25 KB** | **20.79 KB** | **20.79 KB** | **NODE_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: -0.0%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 266d7e1db2675f15c1612d4a068237e02fdf4123\n</p>\n"
] | 2020-03-05 19:50:52 | 2020-03-10 17:40:49 | 2020-03-10 17:40:46 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18230', 'html_url': 'https://github.com/facebook/react/pull/18230', 'diff_url': 'https://github.com/facebook/react/pull/18230.diff', 'patch_url': 'https://github.com/facebook/react/pull/18230.patch', 'merged_at': datetime.datetime(2020, 3, 10, 17, 40, 46)} | Alternately, I could hook this up to a GK, but it seems like it would be nice if the flag were static. | {'url': 'https://api.github.com/repos/facebook/react/issues/18230/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18230/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18229 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18229/labels{/name} | https://api.github.com/repos/facebook/react/issues/18229/comments | https://api.github.com/repos/facebook/react/issues/18229/events | https://github.com/facebook/react/issues/18229 | 576,484,375 | MDU6SXNzdWU1NzY0ODQzNzU= | 18,229 | [Feature Request] Allow dependency length to change in hooks | {'login': 'georeith', 'id': 3090066, 'node_id': 'MDQ6VXNlcjMwOTAwNjY=', 'avatar_url': 'https://avatars.githubusercontent.com/u/3090066?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/georeith', 'html_url': 'https://github.com/georeith', 'followers_url': 'https://api.github.com/users/georeith/followers', 'following_url': 'https://api.github.com/users/georeith/following{/other_user}', 'gists_url': 'https://api.github.com/users/georeith/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/georeith/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/georeith/subscriptions', 'organizations_url': 'https://api.github.com/users/georeith/orgs', 'repos_url': 'https://api.github.com/users/georeith/repos', 'events_url': 'https://api.github.com/users/georeith/events{/privacy}', 'received_events_url': 'https://api.github.com/users/georeith/received_events', 'type': 'User', 'site_admin': False} | [{'id': 40929153, 'node_id': 'MDU6TGFiZWw0MDkyOTE1Mw==', 'url': 'https://api.github.com/repos/facebook/react/labels/Type:%20Enhancement', 'name': 'Type: Enhancement', 'color': '84b6eb', 'default': False, 'description': None}
{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | open | false | null | [] | null | [
"This is seems like a non-problem: just add an array itself as a single dependency.",
"@vkurchatkin I can't guarantee the referential equality of the array (it is derived itself, a list of ids mapped against a dictionary). The items within it stay referentially the same unless explcitily modified. \r\n\r\nTrying to keep the array referentially equal creates a whole host of cache invalidation issues and becomes very fragile in its implementation. \r\n\r\nThis is a problem anywhere where `useMemo` would want to reduce a variable length list. ",
"Generally in React you should:\r\n - use immutable structures\r\n - use pure functions to transform immutable structures\r\n\r\nIf you follow these two rules, then `useMemo` just works.\r\n\r\n> is derived itself, a list of ids mapped against a dictionary\r\n\r\nIf it is derived, then you should derive it using `useMemo` as well\r\n\r\n",
"@vkurchatkin I am following all these rules.\r\n\r\nI can't use `useMemo` to create it because of the issue above.\r\n\r\nConsider this:\r\n\r\nI have normalized dictionary of objects, they are immutable and I change it by doing shallow clones down to the appropriate level of change.\r\n\r\nElsewhere I store a list of selected IDs that reference the keys of that dictionary.\r\n\r\nI map that list into an array of the selected objects. I do not want to `useMemo` that because the IDs don't change but the items do, therefore due to the immutable nature in which I update the items I would be left with stale copies in that array. To `useMemo` that effectively I need to pass the variable length list of items in as dependencies again.\r\n\r\nI now want to derive some information from those selected items. I need `useMemo` to have the objects as dependencies. I am unable to because the size of the list of objects changes (the selection) and at the same the objects themselves will update (immutably hence why I can't store a referentially equal subset of them in an array). \r\n\r\nIn short I am trying to follow the principles but in this case `useMemo` does not work as I am unable to give it a variable dependency list when the data I am computing changes in size.\r\n\r\nI could `useMemo` and pass in the dictionary as a whole buts its hugely inefficient and causes tons of unnecessary recalculations of that data, that I only need to recompute if the selected items change.",
"I don't understand the reasons behind this technical limitation, it feels weird to me that perhaps the simplest, cleanest, possible use of `useMemo` isn't supported out of the box:\r\n\r\n```ts\r\nuseMemo ( () => x, x );\r\n```",
"I'd like to see this, too.\r\n\r\nAs a slightly-contrived example, let's consider the following case:\r\n\r\n```JavaScript\r\nfunction formValuesReducer(oldValues, update) {\r\n return { ...oldValues, [update[0]]: update[1] };\r\n}\r\n\r\nconst initialFormValues = {\r\n firstName: 'John',\r\n lastName: 'Doe',\r\n city: 'Boise',\r\n state: 'Idaho'\r\n};\r\n\r\nconst nameTemplatePieces = ['firstName', 'lastName'];\r\n\r\nconst MyComponent = (props) => {\r\n const formValues = useReducer(formValuesReducer, initialFormValues);\r\n \r\n const nameValues = useMemo(\r\n () => nameTemplatePieces.map(templatePieces => formValues[templatePieces]),\r\n [formValues, nameTemplatePieces]\r\n );\r\n \r\n const fullName = useMemo(\r\n () => doExpensiveOperation(nameValues),\r\n [nameValues]\r\n );\r\n}\r\n```\r\n\r\nIn the above example, `fullName` is recalculated any time that _any_ field in `formValues` changes. Ideally, though, `fullName` would only be recalculated when either `nameValues.firstName` or `nameValues.lastName` has changed.\r\n\r\nSince `nameTemplatePieces` is a constant with a fixed length, we could guarantee that `fullName` only gets recalculated when `nameValues.firstName` or `nameValues.lastName` change by changing this:\r\n\r\n```JavaScript\r\nconst fullName = useMemo(\r\n () => doExpensiveOperation(nameValues),\r\n [nameValues]\r\n );\r\n```\r\n\r\nto this:\r\n\r\n```JavaScript\r\nconst fullName = useMemo(\r\n () => doExpensiveOperation(nameValues),\r\n [...nameValues]\r\n );\r\n```\r\n\r\nHowever, if the length of `nameTemplatePieces` (and therefore `nameValues`) isn't fixed, then this no longer works, because React throws an error saying that the same number of arguments must always be passed to `useMemo()`",
"This issue has been automatically marked as stale. **If this issue is still affecting you, please leave any comment** (for example, \"bump\"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!\n",
"Yes I still care about this.",
"I agree with OP, I also don't understand why instead of throwing an error \r\n`prevDeps.length !== nextDeps.length` can't just count as a change in the dependencies itself.\r\n\r\nI want to be able to memoize an array but spreading over the values inside the dependency would throw an error if the array changes in size.\r\n\r\nA temporary solution could be to use `JSON.stringify(arr)` inside hook's deps, but this will only work for serializable data.",
"This issue has been automatically marked as stale. **If this issue is still affecting you, please leave any comment** (for example, \"bump\"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!\n",
"This issue still affects me. Recoil is an example of a library that attempts to overcome this issue of memorising n length derived data from other derived data. ",
"Yeah I've been bitten by this one too. Not a `useMemo`, but the same limitation and error: I wanted to fire a `useEffect` whenever the contents of a variable length array changes. The array could contain many different data shapes, and I want to check equality using `Object.is()` style strict equality, so tried to do this:\r\n\r\n```js\r\nlet items: T[] = [];\r\n// ^ or [{foo: true}], or [1,2,3], or [true] etc depending on the generics used outside of this component\r\n\r\nuseEffect(() => {\r\n console.log(\"changed\");\r\n}, items);\r\n```\r\nAnd obviously hit this odd limitation.\r\n\r\nMy potential approaches seem to be:\r\n- Use one `useEffect` per `item`? Items can change length, so the rules of hooks disallow this, which is fine. \r\n- Use one `useEffect` and pass in an array of items? The dependency length error is thrown.\r\n- Transform the array to get it into a format that `useEffect` is ok with\r\n - If the array is homogeneous, elements are uniquely identifiable, and the data shape can be known to the hook, then this can sometimes work i.e. `let users: User = [{id: 'foo'}];` and `useEffect(() => {}, [users.map(user => user.id).join(',')])`, but is not suitable for my case as I can't / shouldn't need to know the shape of the items in advance, and I need to use Object.is() style strict equality for comparison.\r\n - If the array is fine with being checked for equality deeply then `useEffect(() => {}, [JSON.stringify(items)])` might be ok sometimes, but is not suitable for my case as I need to use `Object.is()` style strict equality for comparison\r\n - If you're ok with a maximum limit on your items then maybe `useEffect(() => {}, Array(10).fill(undefined).map((v,i) => items[i]))`, but is not suitable for my case as I have no reasonable limit I can impose\r\n - Roll my own hook that circumvents the limitation\r\n \r\nSo just had to do the last one. It's for `useEffect`, but equally applicable to the other hooks. My tests say it's ok but please use it with caution.\r\n\r\n```js\r\nimport {useEffect, useRef} from 'react';\r\n\r\nconst equal = (a: unknown[], b: unknown[]): boolean => {\r\n if(a === b) return true;\r\n if(a.length !== b.length) return false;\r\n return a.every((e,i) => Object.is(e,b[i]));\r\n};\r\n\r\nexport const useEffectVariadic = (create: () => (() => void)|void, deps: unknown[]): void => {\r\n const prevDeps = useRef<unknown[]>([]);\r\n const count = useRef<number>(0);\r\n\r\n if(!equal(prevDeps.current, deps)) count.current++;\r\n prevDeps.current = deps;\r\n\r\n useEffect(create, [count.current]);\r\n};\r\n\r\n// usage like normal useEffect\r\n\r\nuseEffectVariadic(() => {\r\n console.log(\"hi\");\r\n}, variableLengthArrayOfStuff);\r\n```",
"> > is derived itself, a list of ids mapped against a dictionary\r\n> \r\n> If it is derived, then you should derive it using `useMemo` as well\r\n\r\n\r\nI don't understand this at all. Going with the example of an API function that I don't control that returns a newly created array of results, could you please elaborate on how I could ensure that a certain value is only recalculated when the length or elements of this array change?",
"I noticed that I can add the length of the array and then the elements and this works fine:\r\n`useMemo(() => x, [x.length, ...x]);`\r\nThe nice thing about it is that it even works for multiple arrays\r\n`[x.length, ...x, y.length, ...y]`\r\nAnd for arrays of arrays\r\n`[x.length, ...x.map(y => [y.length, ...y]).flat(1)]`\r\nAnd any variation of the above.\r\n\r\nI actually think that this strategy is much better than just passing arrays because one might accidentally do this:\r\n`[...x, ...y]`\r\nwhich would treat `x=[1,2];y=[3,4]` and `x=[1];y=[2,3,4]` as equal even with length mismatch detection, however this should definitely be mentioned in the docs. Currently useMemo doesn't even show an error on different lengths which is very confusing.",
"I don't know how just adding the length and the elements is supposed to prevent the size of the dependencies from changing.\r\n\r\nI was thinking something might this might workaround the issue:\r\n```typescript\r\ntype DependencyList = ReadonlyArray<any>;\r\n\r\nfunction sameDeps(a: DependencyList, b: DependencyList): boolean {\r\n return a.length === b.length && a.every((value, index) => Object.is(value, b[index]));\r\n}\r\n\r\nfunction useMemoDynamic<T>(factory: () => T, deps: DependencyList): T {\r\n const ref = useRef<DependencyList>();\r\n const next = ref.current !== undefined && sameDeps(ref.current, deps) ? ref.current : deps;\r\n useEffect(() => { ref.current = next });\r\n return useMemo(factory, [next]);\r\n}\r\n```\r\n\r\nThis is a very frustrating problem. There are many reasons why the size of the dependencies should be able to grow and shrink while still conforming to all the hook rules.",
"@steinybot the length of the dependency array can change and this should be detected, but that would only allow us to flatten one variable length collection into the dependency array, otherwise, eg. if we spread two arrays into a single dependency array, the arrays may change in a way that the resulting dependency array remains the same. Prepending the length of each variable length collection is a comparatively simple way to avoid this problem altogether such that we never even have to think about it.\r\n\r\nedit: the dependency array's length still changes but if we prepend lengths in this way then a difference is guaranteed to occur in the shorter of the old and new arrays and therefore comparing lengths is not necessary.",
"After a bit of consideration I've realised that we should special case variable length arrays because allowing them in any dependency list would lead people to make the mistake I've discussed above and there's no way to detect that and issue warnings. React may consider adding a special hook for this because it cannot be intuitively expressed with the current ones, but I went ahead and created this package [@lbfalvy/react-utils](https://www.npmjs.com/package/@lbfalvy/react-utils#usearray) because if most people are getting by without it then maybe it shouldn't be taking space in the main React bundle.\r\n\r\nThe package has other stuff as well but it's tree-shakeable so it shouldn't end up in your bundles.",
"This issue has been automatically marked as stale. **If this issue is still affecting you, please leave any comment** (for example, \"bump\"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!\n",
"I believe the OP's suggestion is still the correct way to go.",
"useMemo dependency length 发生改变的时候,建议是触发更新。就按字面意思来清楚 dependency 的改变,毕竟长度改变也的确证明依赖项发生了改变\r\n```\r\n// 同时认为如下的方式 是合理的,他们应该被判定为等价\r\nconst x1 = [1]; \r\nconst y1 = [2,3,4];\r\n\r\nconst x2 = [1, 2]; \r\nconst y2 = [3,4];\r\n\r\n[...x1, ...y1] === [...x2,...y2]\r\n```\r\n\r\n另外一个问题 为什么 dev 和 prod. 模式下两者表现不一致? 因为有如下代码\r\n\r\n```\r\n// react-hot-loader\r\nvar hookWrapper = function hookWrapper(hook) {\r\n var wrappedHook = function wrappedHook(cb, deps) {\r\n if (configuration.reloadHooks && deps) {\r\n var inputs = [].concat(deps);\r\n\r\n // 重点在于它在结尾统一增加了 函数callback 导致数组判断的时候刚好行为不一致\r\n // reload hooks which have changed string representation\r\n if (configuration.reloadHooksOnBodyChange) {\r\n inputs.push(String(cb));\r\n }\r\n\r\n if (\r\n // reload hooks with dependencies\r\n deps.length > 0 ||\r\n // reload all hooks of option is set\r\n configuration.reloadLifeCycleHooks && deps.length === 0) {\r\n inputs.push(getHotGeneration());\r\n }\r\n\r\n return hook(cb, inputs);\r\n }\r\n return hook(cb, deps);\r\n };\r\n wrappedHook.isPatchedByReactHotLoader = true;\r\n return wrappedHook;\r\n};\r\n```\r\n因为 inputs.push(String(cb)); 的存在,导致。dependency 的依赖项的比较可能跟线上不一致,例如\r\ninput1 = [1, 2] output1 = [1,2, String(callback)]\r\ninput2 = [1, 2, 3] output2 = [1,2, 3, String(callback)]\r\n\r\n按照 useMemo 的 dependency 判断(不进行长度判断) prod : input1 == input2 , dev : output2 != output2; \r\n"
] | 2020-03-05 19:36:28 | 2022-12-16 03:32:48 | null | NONE | null | null | null | Not allowing dependency lists to change size limits the usefulness of `useMemo` in this particular use case but I imagine there are other similar use cases.
To be clear I am talking about the error triggered here:
https://github.com/facebook/react/blob/024a764310e64ef38963df16970364b9942a60cd/packages/react-reconciler/src/ReactFiberHooks.js#L322
For instance, in my app I have a bunch of items and the user can select an unlimited amount of them, in another component I want to compute an expensive derived value based on this selection that is relevant only to this component, a good use case for `useMemo`.
However it is not currently possible to use `useMemo` and I am forced to compute this derived data outside of this component even though I am only interested in doing so whilst this component is mounted.
I don't understand why a change in dependency list length cannot be assumed to be a change in the dependencies itself?
I believe this can be implemented by changing the above to:
```js
if (prevDeps.length !== nextDeps.length) {
return false;
}
``` | {'url': 'https://api.github.com/repos/facebook/react/issues/18229/reactions', 'total_count': 19, '+1': 19, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18229/timeline | null | null | false |
https://api.github.com/repos/facebook/react/issues/18228 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18228/labels{/name} | https://api.github.com/repos/facebook/react/issues/18228/comments | https://api.github.com/repos/facebook/react/issues/18228/events | https://github.com/facebook/react/issues/18228 | 576,477,351 | MDU6SXNzdWU1NzY0NzczNTE= | 18,228 | Bug: Incorrect logging level on warnings for unique key | {'login': 'ghost', 'id': 10137, 'node_id': 'MDQ6VXNlcjEwMTM3', 'avatar_url': 'https://avatars.githubusercontent.com/u/10137?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/ghost', 'html_url': 'https://github.com/ghost', 'followers_url': 'https://api.github.com/users/ghost/followers', 'following_url': 'https://api.github.com/users/ghost/following{/other_user}', 'gists_url': 'https://api.github.com/users/ghost/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/ghost/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/ghost/subscriptions', 'organizations_url': 'https://api.github.com/users/ghost/orgs', 'repos_url': 'https://api.github.com/users/ghost/repos', 'events_url': 'https://api.github.com/users/ghost/events{/privacy}', 'received_events_url': 'https://api.github.com/users/ghost/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"Isn't it really dangerous to render an array without keys? Shouldn't it be treated as an error rather than a warning?\r\n\r\nIf all that needs to change is the error -> warning for `console` then I'd like to take this on as a PR.",
"In my years of working in this ecosystem it has proved to be entirely benign durring development. But that may not be true for everyones compositions.\r\n\r\nIn many cases the arrays in question are static content being mapped to reduce space and provide a clear compositional architecture. You should key, that is not a question, when content may mutate depending on state. \r\n\r\nAs there are atleast two differing usecases, one, in which I would rather not hear at all about my usage, and another where an error would be appropriate. I can understand attempting to get the best of both worlds out of an error that says warning.",
"This error is absolutely critical to address. It is **not** benign. We’ve had severe issues in the past when developers ignored it. Think sending a message to a wrong person or buying a wrong product. That’s what happens when one person thinks “this won’t reorder” then it does after another person’s change.\r\n\r\nIf the order is truly static you should be able to express it in JSX without using arrays. As a last resort you can spread children manually as rest arguments to `createElement` — which is what JSX does today for static children. But do this at your own peril. This is dangerous. ",
"I know my usecase may not be everyone elses. But I was under the impression that this message would be suppressed aswell as per the readme of react and verbage.\r\n\r\n```\r\nNote: by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the production build when deploying your application.\r\n```\r\n\r\nI test production to observe how it will behave and was under the impression that would have been my first line of catching distracting messages. I do appreciate your suggestion however considering who you are. My want for perfect magic stringless functional code and a process that might not be everyones cup of tea falls under features if thats your opinion and I'll just edit it in on my own copy to reduce the error to a warn while I'm over here grinding it out alone.\r\n\r\nBetter yet! Could you please reference me in the direction of addressing keys better than grep? And a means of replicating your present issues and limitations in unkeyed serial elements?"
] | 2020-03-05 19:22:57 | 2020-03-07 02:46:17 | 2020-03-05 21:53:54 | NONE | null | null | null | ![image](https://user-images.githubusercontent.com/26851121/76016456-b40abd80-5ed1-11ea-8ec7-eb0aee245496.png)
React version: `^16.12.0`
## Steps To Reproduce
1. Render an array of elements without a key attribute to instigate the 'warning'
2. Observe an error
## The current behavior
Produces an error labelled as a warning.
## The expected behavior
Produce a warning.
The issue with this is that I cannot filter console verbosity without it being spammed about keys first. I'm not open to reccomendations or discussion on my workflow, I'm simply reporting what happens.
Please elevate this to an error proper without conflicting information or allow me to use verbosity filters for the purpose they were implimented by logging it as a warning proper.
| {'url': 'https://api.github.com/repos/facebook/react/issues/18228/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18228/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18227 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18227/labels{/name} | https://api.github.com/repos/facebook/react/issues/18227/comments | https://api.github.com/repos/facebook/react/issues/18227/events | https://github.com/facebook/react/issues/18227 | 576,428,462 | MDU6SXNzdWU1NzY0Mjg0NjI= | 18,227 | DevTools: Standalone version should remember last opened tab | {'login': 'bvaughn', 'id': 29597, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False} | [{'id': 710573595, 'node_id': 'MDU6TGFiZWw3MTA1NzM1OTU=', 'url': 'https://api.github.com/repos/facebook/react/labels/Component:%20Developer%20Tools', 'name': 'Component: Developer Tools', 'color': 'fbca04', 'default': False, 'description': None}] | closed | false | {'login': 'bvaughn', 'id': 29597.0, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False} | [{'login': 'bvaughn', 'id': 29597, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False}] | null | [
"Hi @bvaughn, I'd like to take this ticket",
"This issue is all yours! 😄\r\n\r\nI've added the **\"good first issue (taken)\"** label so that others will know not to start work on the issue. If you change your mind about the issue, no worries! Just let me know so that I can remove the label and free it up for someone else to claim.\r\n\r\nCheers!",
"I'm going to go ahead and roll this into #18226 :smile:",
"Implemented via #18248"
] | 2020-03-05 17:50:12 | 2020-03-18 18:05:53 | 2020-03-18 18:05:53 | CONTRIBUTOR | null | null | null | Currently the "Components" tab is always opened by default. This should be a sticky preference such that if the "Profiler" tab was opened last, re-opening the [standalone DevTools](https://www.npmjs.com/package/react-devtools) should open "Profiler" by default again.
Note that these shortcut keys should **only** be implemented for the standalone DevTools since these tabs are part of the browser chrome for the web extension. | {'url': 'https://api.github.com/repos/facebook/react/issues/18227/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18227/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18226 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18226/labels{/name} | https://api.github.com/repos/facebook/react/issues/18226/comments | https://api.github.com/repos/facebook/react/issues/18226/events | https://github.com/facebook/react/issues/18226 | 576,427,322 | MDU6SXNzdWU1NzY0MjczMjI= | 18,226 | DevTools: Add shortcut keys for standalone version | {'login': 'bvaughn', 'id': 29597, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False} | [{'id': 710573595, 'node_id': 'MDU6TGFiZWw3MTA1NzM1OTU=', 'url': 'https://api.github.com/repos/facebook/react/labels/Component:%20Developer%20Tools', 'name': 'Component: Developer Tools', 'color': 'fbca04', 'default': False, 'description': None}
{'id': 725156255, 'node_id': 'MDU6TGFiZWw3MjUxNTYyNTU=', 'url': 'https://api.github.com/repos/facebook/react/labels/good%20first%20issue%20(taken)', 'name': 'good first issue (taken)', 'color': 'b60205', 'default': False, 'description': None}] | closed | false | {'login': 'kerolloz', 'id': 36763164.0, 'node_id': 'MDQ6VXNlcjM2NzYzMTY0', 'avatar_url': 'https://avatars.githubusercontent.com/u/36763164?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/kerolloz', 'html_url': 'https://github.com/kerolloz', 'followers_url': 'https://api.github.com/users/kerolloz/followers', 'following_url': 'https://api.github.com/users/kerolloz/following{/other_user}', 'gists_url': 'https://api.github.com/users/kerolloz/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/kerolloz/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/kerolloz/subscriptions', 'organizations_url': 'https://api.github.com/users/kerolloz/orgs', 'repos_url': 'https://api.github.com/users/kerolloz/repos', 'events_url': 'https://api.github.com/users/kerolloz/events{/privacy}', 'received_events_url': 'https://api.github.com/users/kerolloz/received_events', 'type': 'User', 'site_admin': False} | [{'login': 'kerolloz', 'id': 36763164, 'node_id': 'MDQ6VXNlcjM2NzYzMTY0', 'avatar_url': 'https://avatars.githubusercontent.com/u/36763164?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/kerolloz', 'html_url': 'https://github.com/kerolloz', 'followers_url': 'https://api.github.com/users/kerolloz/followers', 'following_url': 'https://api.github.com/users/kerolloz/following{/other_user}', 'gists_url': 'https://api.github.com/users/kerolloz/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/kerolloz/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/kerolloz/subscriptions', 'organizations_url': 'https://api.github.com/users/kerolloz/orgs', 'repos_url': 'https://api.github.com/users/kerolloz/repos', 'events_url': 'https://api.github.com/users/kerolloz/events{/privacy}', 'received_events_url': 'https://api.github.com/users/kerolloz/received_events', 'type': 'User', 'site_admin': False}] | null | [
"Hello @bvaughn, I want to get started with this issue, I am not sure which one is the \"standalone DevTools\".\r\n I think https://github.com/facebook/react/tree/master/packages/react-devtools is what you mean, right? ",
"Yes, that's the one.",
"This issue is all yours! 😄\r\n\r\nI've added the **\"good first issue (taken)\"** label so that others will know not to start work on the issue. If you change your mind about the issue, no worries! Just let me know so that I can remove the label and free it up for someone else to claim.\r\n\r\nCheers!",
"Thank you @bvaughn :smile: \r\n\r\nfor the past two hours, I have been trying to get started with building the package from source as [mentioned](https://github.com/facebook/react/tree/master/packages/react-devtools#build-from-source). \r\nI did `yarn build-for-devtools` but it throws the following error \r\n![image](https://user-images.githubusercontent.com/36763164/76020622-6a9b8c00-5f2c-11ea-8fae-b92c7b67e2b9.png)\r\n```\r\n➜ yarn build-for-devtools\r\n\r\nyarn run v1.22.0\r\n$ cross-env RELEASE_CHANNEL=experimental yarn build -- react/index,react-dom,react-is,react-debug-tools,scheduler,react-test-renderer --type=NODE\r\nwarning From Yarn 1.0 onwards, scripts don't require \"--\" for options to be forwarded. In a future version, any explicit \"--\" will be forwarded as-is to the scripts.\r\n$ node ./scripts/rollup/build.js react/index,react-dom,react-is,react-debug-tools,scheduler,react-test-renderer --type=NODE\r\n BUILDING react.development.js (node_dev)\r\n COMPLETE react.development.js (node_dev)\r\n\r\n BUILDING react.production.min.js (node_prod)\r\n OH NOES! react.production.min.js (node_prod)\r\n \r\n-- PLUGIN_ERROR (scripts/rollup/plugins/closure-plugin) -- \r\nError: Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true \r\n \r\n at /home/kerolloz/react/scripts/rollup/plugins/closure-plugin.js:16:16 \r\n at ChildProcess.<anonymous> (/home/kerolloz/react/node_modules/google-closure-compiler/lib/node/closure-compiler.js:103:9) \r\n at ChildProcess.emit (events.js:321:20) \r\n at maybeClose (internal/child_process.js:1026:16) \r\n at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) \r\nerror Command failed with exit code 1. \r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\r\nerror Command failed with exit code 1.\r\ninfo Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.\r\n```\r\n---\r\nmore info: \r\n![image](https://user-images.githubusercontent.com/36763164/76020737-a5052900-5f2c-11ea-9703-90868757a184.png)\r\n\r\nis this a problem with Java?",
"You'll need Java to build React source, because of the Closure Compiler, but I suggest just using the [download script](https://github.com/facebook/react/tree/master/packages/react-devtools#download-from-ci) instead.\r\n```\r\n./scripts/release/download-experimental-build.js\r\n```\r\nShould only take a few seconds.",
"Thank you @bvaughn :smile: \r\nI tried using the script but it depends on some packages that didn't exist despite running `yarn` in the main root directory. \r\n\r\n---\r\nback to the `yarn build-for-devtools` command\r\nI followed the stack trace of the error and I managed to fix it.\r\nhttps://github.com/facebook/react/blob/024a764310e64ef38963df16970364b9942a60cd/scripts/rollup/plugins/closure-plugin.js#L9-L20\r\n\r\nI changed line 13 to be `if (!exitCode)` instead of `if (!stdErr)` and the issue was fixed and I managed to compile it. ",
"oh my bad\r\nI should have run `yarn` first inside the _`scripts/release`_ dir. Sorry.\r\n\r\n",
"for the sake of documenting the errors I face, when I try to run `yarn start` at _`react/packages/react-devtools`_ nothing happens. I tried running the electron executable at _`node_modules`_ dir and the following error was given \r\n```\r\n➜ ./node_modules/.bin/electron \r\n[112941:0306/004904.433464:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/kerolloz/react/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.\r\n```\r\nThat is how I managed to solve it.\r\n```sh\r\nsudo sysctl kernel.unprivileged_userns_clone=1\r\n```\r\n\r\nrefer to: https://github.com/electron/electron/issues/17972",
"Hi @bvaughn \r\nI have been playing around the devtools packages codebase the whole night. I'm a little bit confused, I should implement the tab switching shortcut feature in the _`rect-devtools`_ dir. I don't really get to understand how the standalone devtools is connected to the frontend part. I see frontend bridge. what is the right approach to get started implementing the shortcuts feature only for the standalone version. According to Electron documentation, the [keyboard shortcuts](https://www.electronjs.org/docs/tutorial/keyboard-shortcuts) suggests 3 approaches, I see that the first approach might be a good choice (Local Shortcuts). but how can I manage the frontend part and switch tab from the electron part?",
"@kerolloz In case the READMEs aren't clear, here's a high level overview of the DevTools packages:\r\n* [`packages/react-devtools-core`](https://github.com/facebook/react/tree/master/packages/react-devtools-core): Lower level package used by the standalone shell, React Native, and some other dev tooling.\r\n* [`packages/react-devtools-extensions`](https://github.com/facebook/react/tree/master/packages/react-devtools-extensions): Browser-specific code for extensions.\r\n* [`packages/react-devtools-inline`](https://github.com/facebook/react/tree/master/packages/react-devtools-inline): Embed friendly version of DevTools used by Code Sandbox.\r\n* [`packages/react-devtools-shared`](https://github.com/facebook/react/tree/master/packages/react-devtools-shared): Code shared between all of the other packages.\r\n* [`packages/react-devtools-shell`](https://github.com/facebook/react/tree/master/packages/react-devtools-shell): Test harness used for local development.\r\n* [`packages/react-devtools`](https://github.com/facebook/react/tree/master/packages/react-devtools): Small wrapper around core package that launches an Electron shell with the DevTools UI embedded into it.\r\n\r\nWorking on this feature will mean you'll want to test the following packages:\r\n* `packages/react-devtools-core`: This is the standalone UI with built-in tabs.\r\n* `packages/react-devtools-inline`: This UI has built-in tabs too.\r\n* `packages/react-devtools-shell`: This UI has tabs too and also allows you to test the change more quickly when you're initially working on it.\r\n\r\nYou will also likely end up needing to work with `packages/react-devtools-shared` since it's where most of the code lives. 🙂 Specifically, you may end up adding code to:\r\n* [`DevTools`](https://github.com/facebook/react/blob/master/packages/react-devtools-shared/src/devtools/views/DevTools.js) to remember the last selected tab, set the right default, and wire up the shortcut keys. (Although please be sure to only do this if `showTabBar` is true.)\r\n* [`TabBar`](https://github.com/facebook/react/blob/master/packages/react-devtools-shared/src/devtools/views/TabBar.js) since this is where the Tabs live. (You may not need to do anything here though.)\r\n\r\nI do not expected that you would end up needing to do anything in either `packages/react-devtools` or `packages/react-devtools-extensions`."
] | 2020-03-05 17:48:11 | 2020-03-18 18:05:42 | 2020-03-18 18:05:42 | CONTRIBUTOR | null | null | null | Suggested keys:
* ⌘1 - Switch to "Components" tab
* ⌘2 - Switch to "Profiler" tab
Note that these shortcut keys should **only** be implemented for the [standalone DevTools](https://www.npmjs.com/package/react-devtools) since (1) the browser already uses these shortcut keys and (2) the "Component" and "Profiler" tabs are only part of DevTools in the standalone version anyway. | {'url': 'https://api.github.com/repos/facebook/react/issues/18226/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18226/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18225 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18225/labels{/name} | https://api.github.com/repos/facebook/react/issues/18225/comments | https://api.github.com/repos/facebook/react/issues/18225/events | https://github.com/facebook/react/issues/18225 | 576,406,620 | MDU6SXNzdWU1NzY0MDY2MjA= | 18,225 | link test build then Can't resolve './cjs/react-dom.development.js' | {'login': 'GoToBoy', 'id': 2384105, 'node_id': 'MDQ6VXNlcjIzODQxMDU=', 'avatar_url': 'https://avatars.githubusercontent.com/u/2384105?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/GoToBoy', 'html_url': 'https://github.com/GoToBoy', 'followers_url': 'https://api.github.com/users/GoToBoy/followers', 'following_url': 'https://api.github.com/users/GoToBoy/following{/other_user}', 'gists_url': 'https://api.github.com/users/GoToBoy/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/GoToBoy/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/GoToBoy/subscriptions', 'organizations_url': 'https://api.github.com/users/GoToBoy/orgs', 'repos_url': 'https://api.github.com/users/GoToBoy/repos', 'events_url': 'https://api.github.com/users/GoToBoy/events{/privacy}', 'received_events_url': 'https://api.github.com/users/GoToBoy/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"<img width=\"1300\" alt=\"image\" src=\"https://user-images.githubusercontent.com/2384105/76006956-3fbf3100-5f48-11ea-8323-1c929eb9d129.png\">\r\nit seems that wrong happen at yarn build step",
"Can you change the path from `/cjs/` to `/umd/` and try again?",
"You need to build `--type=NODE` for npm packages. \r\nI clarified in https://github.com/reactjs/reactjs.org/commit/b3c7540a10498328d981e38731253ffa0e1798d4."
] | 2020-03-05 17:11:46 | 2020-03-14 13:34:39 | 2020-03-14 13:34:39 | NONE | null | null | null | React Source Code version: 16.13.0
## Steps To Reproduce
1. clone react souce code
2. yarn build react and react-dom then link them ( [from doc ](https://reactjs.org/docs/how-to-contribute.html)
<img width="980" alt="image" src="https://user-images.githubusercontent.com/2384105/76006565-a4c65700-5f47-11ea-9c48-399e37dcd268.png">
3. cd myProject( clean project from create-react-app)
4. link react and react-dom then yarn start
## The current behavior
<img width="656" alt="image" src="https://user-images.githubusercontent.com/2384105/76006337-48633780-5f47-11ea-8a70-c1b78f292f78.png">
## The expected behavior
server ok
| {'url': 'https://api.github.com/repos/facebook/react/issues/18225/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18225/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18224 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18224/labels{/name} | https://api.github.com/repos/facebook/react/issues/18224/comments | https://api.github.com/repos/facebook/react/issues/18224/events | https://github.com/facebook/react/pull/18224 | 576,398,261 | MDExOlB1bGxSZXF1ZXN0Mzg0MzkyNTg4 | 18,224 | feat: honor displayName of context types | {'login': 'eps1lon', 'id': 12292047, 'node_id': 'MDQ6VXNlcjEyMjkyMDQ3', 'avatar_url': 'https://avatars.githubusercontent.com/u/12292047?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/eps1lon', 'html_url': 'https://github.com/eps1lon', 'followers_url': 'https://api.github.com/users/eps1lon/followers', 'following_url': 'https://api.github.com/users/eps1lon/following{/other_user}', 'gists_url': 'https://api.github.com/users/eps1lon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/eps1lon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/eps1lon/subscriptions', 'organizations_url': 'https://api.github.com/users/eps1lon/orgs', 'repos_url': 'https://api.github.com/users/eps1lon/repos', 'events_url': 'https://api.github.com/users/eps1lon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/eps1lon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18224/builds/13472) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 2176e6d935d518946e53b107b8226501d67df9bb:\n\n|Sandbox| Source |\n|--|--|\n|[ancient-breeze-vjpd0](https://codesandbox.io/s/ancient-breeze-vjpd0)| Configuration |\n|[Context.Consumer.displayName](https://codesandbox.io/s/contextconsumerdisplayname-yyvl0)| PR |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 3ee812e6b67d52a6f262144e78721f9340c36a04...2176e6d935d518946e53b107b8226501d67df9bb</p>\n\n\n \n## react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact.development.js | +0.7% | +0.5% | 99.63 KB | 100.31 KB | 24.51 KB | 24.65 KB | UMD_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **11.59 KB** | **11.59 KB** | **4.56 KB** | **4.56 KB** | **UMD_PROD**\nreact.profiling.min.js | 0.0% | 0.0% | 15.13 KB | 15.13 KB | 5.67 KB | 5.68 KB | UMD_PROFILING\nreact.development.js | +1.1% | +0.8% | 61.49 KB | 62.14 KB | 16.79 KB | 16.92 KB | NODE_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **6.53 KB** | **6.53 KB** | **2.65 KB** | **2.65 KB** | **NODE_PROD**\nReact-dev.js | +0.9% | +0.6% | 74.61 KB | 75.3 KB | 18.95 KB | 19.07 KB | FB_WWW_DEV\n**React-prod.js** | **0.0%** | **0.0%** | **17.69 KB** | **17.69 KB** | **4.56 KB** | **4.56 KB** | **FB_WWW_PROD**\nReact-profiling.js | 0.0% | 0.0% | 17.69 KB | 17.69 KB | 4.56 KB | 4.56 KB | FB_WWW_PROFILING\n\n </details>\n \n\nReact: size: 0.0%, gzip: 0.0%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 2176e6d935d518946e53b107b8226501d67df9bb\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 3ee812e6b67d52a6f262144e78721f9340c36a04...2176e6d935d518946e53b107b8226501d67df9bb</p>\n\n\n \n## react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact.development.js | +0.6% | +0.5% | 107.52 KB | 108.2 KB | 25.72 KB | 25.85 KB | UMD_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **12.45 KB** | **12.45 KB** | **4.8 KB** | **4.8 KB** | **UMD_PROD**\nreact.profiling.min.js | 0.0% | 0.0% | 15.98 KB | 15.98 KB | 5.88 KB | 5.88 KB | UMD_PROFILING\nreact.development.js | +0.9% | +0.6% | 69.02 KB | 69.67 KB | 18 KB | 18.11 KB | NODE_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **7.5 KB** | **7.5 KB** | **2.9 KB** | **2.9 KB** | **NODE_PROD**\nReact-dev.js | +0.9% | +0.7% | 73.93 KB | 74.62 KB | 18.77 KB | 18.89 KB | FB_WWW_DEV\n**React-prod.js** | **0.0%** | **0.0%** | **17.63 KB** | **17.63 KB** | **4.55 KB** | **4.55 KB** | **FB_WWW_PROD**\nReact-profiling.js | 0.0% | 0.0% | 17.63 KB | 17.63 KB | 4.55 KB | 4.55 KB | FB_WWW_PROFILING\n\n </details>\n \n\nReact: size: 0.0%, gzip: 0.0%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 2176e6d935d518946e53b107b8226501d67df9bb\n</p>\n",
"I ran a local sync on this version and verified that the internal test the previous PR broke passes now."
] | 2020-03-05 16:59:40 | 2020-03-05 18:15:22 | 2020-03-05 18:13:53 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18224', 'html_url': 'https://github.com/facebook/react/pull/18224', 'diff_url': 'https://github.com/facebook/react/pull/18224.diff', 'patch_url': 'https://github.com/facebook/react/pull/18224.patch', 'merged_at': datetime.datetime(2020, 3, 5, 18, 13, 53)} | ## Summary
New iteration of #18035 which had to be reverted (#18223) since setting `Context.Consumer.displayName` would throw.
Setting `Context.Consumer.displayName` ignores the given value but emits warning. As far as I can tell this doesn't do anything on `master`: https://codesandbox.io/s/priceless-hooks-lm0ky
## Test Plan
@trueadm should sign this off since this affects internal tests. If a warning is still too loud we could put it behind a flag that we turn off for the fb builds.
| {'url': 'https://api.github.com/repos/facebook/react/issues/18224/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18224/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18223 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18223/labels{/name} | https://api.github.com/repos/facebook/react/issues/18223/comments | https://api.github.com/repos/facebook/react/issues/18223/events | https://github.com/facebook/react/pull/18223 | 576,351,531 | MDExOlB1bGxSZXF1ZXN0Mzg0MzU0NjI3 | 18,223 | Revert "feat: honor displayName of context types" | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18223/builds/13457) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit a4f6cfe86a8dd4e0326fa5933987f5e0f20cd5fc:\n\n|Sandbox| Source |\n|--|--|\n|[elated-curran-nzrtk](https://codesandbox.io/s/elated-curran-nzrtk)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 6a0efddd892d4bf931c089f1ac772a5736dc7edd...a4f6cfe86a8dd4e0326fa5933987f5e0f20cd5fc</p>\n\n\n \n## react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact.development.js | -0.3% | -0.2% | 107.82 KB | 107.52 KB | 25.77 KB | 25.72 KB | UMD_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **12.45 KB** | **12.45 KB** | **4.8 KB** | **4.8 KB** | **UMD_PROD**\nreact.profiling.min.js | 0.0% | 0.0% | 15.98 KB | 15.98 KB | 5.88 KB | 5.88 KB | UMD_PROFILING\nreact.development.js | -0.4% | -0.2% | 69.3 KB | 69.02 KB | 18.04 KB | 18 KB | NODE_DEV\nReact-dev.js | -0.4% | -0.2% | 74.21 KB | 73.93 KB | 18.82 KB | 18.77 KB | FB_WWW_DEV\n**React-prod.js** | **0.0%** | **0.0%** | **17.63 KB** | **17.63 KB** | **4.55 KB** | **4.55 KB** | **FB_WWW_PROD**\nReact-profiling.js | 0.0% | 0.0% | 17.63 KB | 17.63 KB | 4.55 KB | 4.55 KB | FB_WWW_PROFILING\n\n </details>\n \n\nReact: size: 0.0%, gzip: 0.0%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against a4f6cfe86a8dd4e0326fa5933987f5e0f20cd5fc\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 6a0efddd892d4bf931c089f1ac772a5736dc7edd...a4f6cfe86a8dd4e0326fa5933987f5e0f20cd5fc</p>\n\n\n \n## react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact.development.js | -0.3% | -0.2% | 99.93 KB | 99.63 KB | 24.56 KB | 24.51 KB | UMD_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **11.59 KB** | **11.59 KB** | **4.56 KB** | **4.56 KB** | **UMD_PROD**\nreact.profiling.min.js | 0.0% | 0.0% | 15.13 KB | 15.13 KB | 5.67 KB | 5.67 KB | UMD_PROFILING\nreact.development.js | -0.5% | -0.3% | 61.77 KB | 61.49 KB | 16.84 KB | 16.79 KB | NODE_DEV\nReact-dev.js | -0.4% | -0.2% | 74.88 KB | 74.61 KB | 19 KB | 18.95 KB | FB_WWW_DEV\n**React-prod.js** | **0.0%** | **0.0%** | **17.69 KB** | **17.69 KB** | **4.56 KB** | **4.56 KB** | **FB_WWW_PROD**\nReact-profiling.js | 0.0% | 0.0% | 17.69 KB | 17.69 KB | 4.56 KB | 4.56 KB | FB_WWW_PROFILING\n\n </details>\n \n\nReact: size: 0.0%, gzip: 0.0%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against a4f6cfe86a8dd4e0326fa5933987f5e0f20cd5fc\n</p>\n",
"@trueadm Could you share what you're doing internally so that we can get this in properly?",
"You mean you're setting the `displayName` on the consumer not context type, right? Like `Context.Consumer.displayName = 'Unused'`? Is this even supported by react-devtools?",
"Even if it's unsupported, this is a breaking change if not fixed. :-)",
"> Even if it's unsupported, this is a breaking change if not fixed. :-)\r\n\r\nSure I can go ahead and add a warning to the setter. I just think this stance locks any object shape once released because someone might set unsupported properties. \r\n\r\nI just need to know what the expected behavior should be.",
"Sorry, I meant the context consumer object."
] | 2020-03-05 15:50:27 | 2022-11-29 22:20:55 | 2020-03-05 15:58:05 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18223', 'html_url': 'https://github.com/facebook/react/pull/18223', 'diff_url': 'https://github.com/facebook/react/pull/18223.diff', 'patch_url': 'https://github.com/facebook/react/pull/18223.patch', 'merged_at': datetime.datetime(2020, 3, 5, 15, 58, 5)} | Reverts facebook/react#18035. This breaks an internal FB test where we try and set the `displayName` on the context consumer. Otherwise we get this runtime exception:
`TypeError: Cannot set property displayName of #<Object> which has only a getter` | {'url': 'https://api.github.com/repos/facebook/react/issues/18223/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18223/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18222 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18222/labels{/name} | https://api.github.com/repos/facebook/react/issues/18222/comments | https://api.github.com/repos/facebook/react/issues/18222/events | https://github.com/facebook/react/pull/18222 | 576,346,016 | MDExOlB1bGxSZXF1ZXN0Mzg0MzUwMTA3 | 18,222 | Break up require/import statements in strings | {'login': 'cpojer', 'id': 13352, 'node_id': 'MDQ6VXNlcjEzMzUy', 'avatar_url': 'https://avatars.githubusercontent.com/u/13352?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/cpojer', 'html_url': 'https://github.com/cpojer', 'followers_url': 'https://api.github.com/users/cpojer/followers', 'following_url': 'https://api.github.com/users/cpojer/following{/other_user}', 'gists_url': 'https://api.github.com/users/cpojer/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/cpojer/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/cpojer/subscriptions', 'organizations_url': 'https://api.github.com/users/cpojer/orgs', 'repos_url': 'https://api.github.com/users/cpojer/repos', 'events_url': 'https://api.github.com/users/cpojer/events{/privacy}', 'received_events_url': 'https://api.github.com/users/cpojer/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18222/builds/13510) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 49e68a03e7f17382a3042e491dfa1abdfb5c2df1:\n\n|Sandbox| Source |\n|--|--|\n|[lucid-moore-5tcps](https://codesandbox.io/s/lucid-moore-5tcps)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 6a0efddd892d4bf931c089f1ac772a5736dc7edd...49e68a03e7f17382a3042e491dfa1abdfb5c2df1</p>\n\n\n \n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactTestRenderer-dev.js | +0.1% | +0.1% | 553.46 KB | 553.88 KB | 116.82 KB | 116.93 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | -0.0% | 38.39 KB | 38.39 KB | 9.29 KB | 9.29 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **0.0%** | **12.91 KB** | **12.91 KB** | **3.93 KB** | **3.93 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 552.33 KB | 552.67 KB | 114.97 KB | 115.07 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **-0.0%** | **71.22 KB** | **71.22 KB** | **21.66 KB** | **21.66 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 526.38 KB | 526.72 KB | 113.66 KB | 113.76 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **0.0%** | **71.04 KB** | **71.04 KB** | **21.34 KB** | **21.34 KB** | **NODE_PROD**\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler.development.js | +0.1% | +0.1% | 555.93 KB | 556.27 KB | 117.59 KB | 117.7 KB | NODE_DEV\nreact-reconciler-reflection.development.js | 0.0% | 0.0% | 16.24 KB | 16.24 KB | 4.96 KB | 4.96 KB | NODE_DEV\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **2.8 KB** | **2.8 KB** | **1.2 KB** | **1.2 KB** | **NODE_PROD**\nreact-reconciler-persistent.development.js | +0.1% | +0.1% | 554.58 KB | 554.99 KB | 117.45 KB | 117.56 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **0.0%** | **0.0%** | **73.72 KB** | **73.72 KB** | **21.78 KB** | **21.78 KB** | **NODE_PROD**\n\n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom-server.browser.development.js | +0.1% | +0.1% | 135.19 KB | 135.28 KB | 34.75 KB | 34.78 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1.15 KB** | **1.15 KB** | **652 B** | **653 B** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.05 KB** | **20.05 KB** | **7.42 KB** | **7.42 KB** | **UMD_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\nreact-dom.development.js | 0.0% | 0.0% | 884.16 KB | 884.5 KB | 194.84 KB | 194.94 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **9.99 KB** | **9.99 KB** | **3.36 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **116.01 KB** | **116.01 KB** | **37.17 KB** | **37.17 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.54 KB | 119.54 KB | 38.33 KB | 38.33 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | +0.1% | 841.41 KB | 841.74 KB | 192.41 KB | 192.51 KB | NODE_DEV\nreact-dom-server.node.development.js | +0.1% | +0.1% | 129.48 KB | 129.57 KB | 34.58 KB | 34.61 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **116.09 KB** | **116.09 KB** | **36.5 KB** | **36.5 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.38 KB** | **20.38 KB** | **7.52 KB** | **7.53 KB** | **NODE_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.77 KB | 119.77 KB | 37.58 KB | 37.58 KB | NODE_PROFILING\nReactDOM-dev.js | 0.0% | 0.0% | 949.32 KB | 949.74 KB | 211.7 KB | 211.8 KB | FB_WWW_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.68 KB | 3.68 KB | 1.33 KB | 1.33 KB | NODE_DEV\nReactDOMTesting-dev.js | 0.0% | +0.1% | 899.4 KB | 899.81 KB | 201 KB | 201.16 KB | FB_WWW_DEV\nreact-dom-server.browser.development.js | +0.1% | +0.1% | 128.27 KB | 128.35 KB | 34.33 KB | 34.36 KB | NODE_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 53.77 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **19.97 KB** | **19.97 KB** | **7.38 KB** | **7.38 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 3.34 KB | 3.34 KB | 1.26 KB | 1.26 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.94 KB** | **10.94 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.17 KB** | **1.17 KB** | **689 B** | **691 B** | **UMD_PROD**\nReactDOMServer-dev.js | +0.1% | +0.1% | 138.16 KB | 138.25 KB | 35.22 KB | 35.25 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 49.55 KB | 49.55 KB | 13.51 KB | 13.51 KB | NODE_DEV\n**ReactDOMServer-prod.js** | **0.0%** | **-0.0%** | **47.49 KB** | **47.49 KB** | **11.05 KB** | **11.05 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.3% | 2.94 KB | 2.94 KB | 1.17 KB | 1.17 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1013 B** | **1013 B** | **600 B** | **602 B** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.26 KB** | **10.26 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-dev.js | 0.0% | +0.1% | 614.69 KB | 614.87 KB | 132.86 KB | 132.94 KB | RN_OSS_DEV\nReactNativeRenderer-dev.js | +0.1% | +0.1% | 632.59 KB | 632.92 KB | 137.13 KB | 137.23 KB | RN_OSS_DEV\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.13 KB | 271.13 KB | 47.34 KB | 47.34 KB | RN_OSS_PROFILING\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: 0.0%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 49e68a03e7f17382a3042e491dfa1abdfb5c2df1\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 6a0efddd892d4bf931c089f1ac772a5736dc7edd...49e68a03e7f17382a3042e491dfa1abdfb5c2df1</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.84 KB | 123.84 KB | 38.64 KB | 38.64 KB | NODE_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.91 KB | 58.91 KB | 14.71 KB | 14.71 KB | UMD_DEV\nReactDOM-dev.js | 0.0% | 0.0% | 905.76 KB | 906.17 KB | 202.13 KB | 202.22 KB | FB_WWW_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.27 KB** | **10.27 KB** | **3.49 KB** | **3.5 KB** | **UMD_PROD**\nReactDOMServer-dev.js | +0.1% | +0.1% | 137.31 KB | 137.4 KB | 35.08 KB | 35.12 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 53.78 KB | 53.78 KB | 14.01 KB | 14.01 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.96 KB** | **10.96 KB** | **4.17 KB** | **4.17 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | 0.0% | +0.1% | 872.76 KB | 873.17 KB | 195.47 KB | 195.59 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **0.0%** | **0.0%** | **368.74 KB** | **368.74 KB** | **67.46 KB** | **67.46 KB** | **FB_WWW_PROD**\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 49.56 KB | 49.56 KB | 13.52 KB | 13.52 KB | NODE_DEV\nReactDOMTesting-profiling.js | 0.0% | 0.0% | 368.74 KB | 368.74 KB | 67.46 KB | 67.46 KB | FB_WWW_PROFILING\nreact-dom-server.node.development.js | +0.1% | +0.1% | 131 KB | 131.08 KB | 34.81 KB | 34.83 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.83 KB** | **20.83 KB** | **7.61 KB** | **7.61 KB** | **NODE_PROD**\nreact-dom.development.js | 0.0% | 0.0% | 912.84 KB | 913.18 KB | 199.76 KB | 199.86 KB | UMD_DEV\nreact-dom-server.browser.development.js | +0.1% | +0.1% | 136.78 KB | 136.87 KB | 34.96 KB | 34.99 KB | UMD_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **119.89 KB** | **119.89 KB** | **38.28 KB** | **38.28 KB** | **UMD_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.51 KB** | **20.51 KB** | **7.51 KB** | **7.51 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.54 KB | 123.54 KB | 39.47 KB | 39.47 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | 0.0% | 868.91 KB | 869.24 KB | 197.31 KB | 197.4 KB | NODE_DEV\nreact-dom-server.browser.development.js | +0.1% | +0.1% | 129.78 KB | 129.87 KB | 34.55 KB | 34.58 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **120.04 KB** | **120.04 KB** | **37.52 KB** | **37.53 KB** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.43 KB** | **20.43 KB** | **7.46 KB** | **7.46 KB** | **NODE_PROD**\n**ReactDOM-prod.js** | **0.0%** | **0.0%** | **376.26 KB** | **376.26 KB** | **68.37 KB** | **68.37 KB** | **FB_WWW_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.87 KB | 55.87 KB | 14.47 KB | 14.47 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.69 KB | 3.69 KB | 1.34 KB | 1.34 KB | NODE_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10 KB** | **10 KB** | **3.37 KB** | **3.38 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1.16 KB** | **1.16 KB** | **661 B** | **662 B** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 3.35 KB | 3.35 KB | 1.27 KB | 1.27 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.19 KB** | **1.19 KB** | **697 B** | **699 B** | **UMD_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 2.95 KB | 2.95 KB | 1.18 KB | 1.18 KB | NODE_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1 KB** | **1 KB** | **608 B** | **610 B** | **NODE_PROD**\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactTestRenderer-dev.js | +0.1% | +0.1% | 553.47 KB | 553.89 KB | 116.83 KB | 116.94 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | -0.0% | 38.4 KB | 38.4 KB | 9.3 KB | 9.3 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **0.0%** | **12.92 KB** | **12.92 KB** | **3.94 KB** | **3.94 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 552.35 KB | 552.69 KB | 114.98 KB | 115.08 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **-0.0%** | **71.25 KB** | **71.25 KB** | **21.67 KB** | **21.67 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 526.41 KB | 526.74 KB | 113.68 KB | 113.77 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **0.0%** | **71.06 KB** | **71.06 KB** | **21.36 KB** | **21.36 KB** | **NODE_PROD**\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler-persistent.development.js | +0.1% | +0.1% | 554.59 KB | 555 KB | 117.46 KB | 117.56 KB | NODE_DEV\nreact-reconciler-reflection.development.js | 0.0% | 0.0% | 16.25 KB | 16.25 KB | 4.96 KB | 4.97 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **0.0%** | **0.0%** | **73.73 KB** | **73.73 KB** | **21.78 KB** | **21.78 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **2.81 KB** | **2.81 KB** | **1.21 KB** | **1.21 KB** | **NODE_PROD**\nreact-reconciler.development.js | +0.1% | +0.1% | 576.69 KB | 577.02 KB | 121.48 KB | 121.58 KB | NODE_DEV\n**react-reconciler.production.min.js** | **0.0%** | **0.0%** | **76.48 KB** | **76.48 KB** | **22.44 KB** | **22.44 KB** | **NODE_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.15 KB | 271.15 KB | 47.35 KB | 47.35 KB | RN_OSS_PROFILING\nReactFabric-dev.js | 0.0% | +0.1% | 617.34 KB | 617.6 KB | 133.2 KB | 133.28 KB | RN_FB_DEV\nReactNativeRenderer-dev.js | +0.1% | +0.1% | 632.6 KB | 632.93 KB | 137.13 KB | 137.23 KB | RN_OSS_DEV\nReactNativeRenderer-dev.js | +0.1% | +0.1% | 635.23 KB | 635.64 KB | 137.47 KB | 137.58 KB | RN_FB_DEV\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.29 KB | 271.29 KB | 47.4 KB | 47.4 KB | RN_FB_PROFILING\nReactFabric-dev.js | 0.0% | +0.1% | 614.7 KB | 614.88 KB | 132.87 KB | 132.95 KB | RN_OSS_DEV\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: :small_red_triangle:+0.1%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 49e68a03e7f17382a3042e491dfa1abdfb5c2df1\n</p>\n",
"FB: The stack of D20282825 explains the reasons behind this change for FB employees.",
"A comment definitely, would be extra nice to have a test or lint rule. Otherwise this absolutely will regress."
] | 2020-03-05 15:42:37 | 2020-03-05 22:37:04 | 2020-03-05 22:27:56 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18222', 'html_url': 'https://github.com/facebook/react/pull/18222', 'diff_url': 'https://github.com/facebook/react/pull/18222.diff', 'patch_url': 'https://github.com/facebook/react/pull/18222.patch', 'merged_at': datetime.datetime(2020, 3, 5, 22, 27, 56)} | ## Summary
We have a number of dependency extractors in JavaScript tools, like Jest but also in internal FB tooling, that are using RegExp to extract static dependencies and create a graph. I am trying to reduce the amount of extractors we have at FB and noticed the Jest one has a few issues that are hard to fix with regex. I realize that RegExp dependency tracking is inherently imprecise but hope we can bear some minor inconvenience in just a few places.
In this PR I'm adjusting the React files we use to make sure require and import statements don't get extracted by Jest. Right now Jest extracts them, and when it looks up dependencies in reverse it just ignores the ones that don't exist. I'd like to make that fail hard in some tools and this change is a pre-requisite for that.
## Test Plan
When running this [dependencyExtractor](https://github.com/facebook/jest/blob/master/packages/jest-haste-map/src/lib/dependencyExtractor.ts) from Jest (via jest-haste-map) on react-native, the React files (ReactFabric-dev.fb.js etc.) will no longer have invalid dependencies associated with them. | {'url': 'https://api.github.com/repos/facebook/react/issues/18222/reactions', 'total_count': 1, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 1} | https://api.github.com/repos/facebook/react/issues/18222/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18221 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18221/labels{/name} | https://api.github.com/repos/facebook/react/issues/18221/comments | https://api.github.com/repos/facebook/react/issues/18221/events | https://github.com/facebook/react/pull/18221 | 576,268,358 | MDExOlB1bGxSZXF1ZXN0Mzg0Mjg3NTY2 | 18,221 | Modern Event System: export internal FB flag for testing | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18221/builds/13440) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 0e4859dce635a9c9e0af3c6dfb23bc6d6a60b45c:\n\n|Sandbox| Source |\n|--|--|\n|[confident-davinci-u4tqf](https://codesandbox.io/s/confident-davinci-u4tqf)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60b11f6c1be111c14c3607809ccad2b8ea680152...0e4859dce635a9c9e0af3c6dfb23bc6d6a60b45c</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.84 KB | 123.84 KB | 38.64 KB | 38.64 KB | NODE_PROFILING\nReactDOM-dev.js | +0.9% | +0.8% | 897.53 KB | 905.76 KB | 200.61 KB | 202.13 KB | FB_WWW_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **10.27 KB** | **10.27 KB** | **3.49 KB** | **3.5 KB** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | 0.0% | 137.25 KB | 137.31 KB | 35.06 KB | 35.07 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 53.78 KB | 53.78 KB | 14.01 KB | 14.01 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.96 KB** | **10.96 KB** | **4.17 KB** | **4.17 KB** | **UMD_PROD**\n**ReactDOMTesting-prod.js** | **0.0%** | **-0.0%** | **368.74 KB** | **368.74 KB** | **67.46 KB** | **67.46 KB** | **FB_WWW_PROD**\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 49.56 KB | 49.56 KB | 13.52 KB | 13.52 KB | NODE_DEV\nReactDOMTesting-profiling.js | 0.0% | -0.0% | 368.74 KB | 368.74 KB | 67.46 KB | 67.46 KB | FB_WWW_PROFILING\nreact-dom-server.node.development.js | 0.0% | -0.0% | 131 KB | 131 KB | 34.81 KB | 34.81 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.83 KB** | **20.83 KB** | **7.61 KB** | **7.61 KB** | **NODE_PROD**\nreact-dom.development.js | 0.0% | 0.0% | 912.84 KB | 912.84 KB | 199.76 KB | 199.77 KB | UMD_DEV\nReactTestUtils-dev.js | +0.1% | +0.1% | 51.31 KB | 51.37 KB | 13.7 KB | 13.72 KB | FB_WWW_DEV\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.51 KB** | **20.51 KB** | **7.51 KB** | **7.51 KB** | **UMD_PROD**\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 129.78 KB | 129.78 KB | 34.55 KB | 34.55 KB | NODE_DEV\n**ReactDOM-prod.js** | **:small_red_triangle:+1.5%** | **:small_red_triangle:+1.2%** | **370.72 KB** | **376.26 KB** | **67.55 KB** | **68.37 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | +1.5% | +1.2% | 381.98 KB | 387.52 KB | 69.67 KB | 70.48 KB | FB_WWW_PROFILING\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **1.19 KB** | **1.19 KB** | **698 B** | **699 B** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1 KB** | **1 KB** | **609 B** | **610 B** | **NODE_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: 0.0%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 0e4859dce635a9c9e0af3c6dfb23bc6d6a60b45c\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60b11f6c1be111c14c3607809ccad2b8ea680152...0e4859dce635a9c9e0af3c6dfb23bc6d6a60b45c</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | +1.5% | +1.3% | 406.37 KB | 412.52 KB | 74.08 KB | 75.04 KB | FB_WWW_PROFILING\nReactTestUtils-dev.js | +0.1% | +0.1% | 51.31 KB | 51.38 KB | 13.7 KB | 13.71 KB | FB_WWW_DEV\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **116.01 KB** | **116.01 KB** | **37.17 KB** | **37.17 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | -0.0% | 119.54 KB | 119.54 KB | 38.33 KB | 38.33 KB | UMD_PROFILING\nReactDOM-dev.js | +1.0% | +1.1% | 939.77 KB | 949.32 KB | 209.49 KB | 211.7 KB | FB_WWW_DEV\n**ReactDOM-prod.js** | **:small_red_triangle:+1.6%** | **:small_red_triangle:+1.3%** | **395.04 KB** | **401.18 KB** | **71.91 KB** | **72.85 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.node.development.js | 0.0% | -0.1% | 3.68 KB | 3.68 KB | 1.33 KB | 1.33 KB | NODE_DEV\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 128.27 KB | 128.27 KB | 34.33 KB | 34.33 KB | NODE_DEV\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 53.77 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.1% | 3.34 KB | 3.34 KB | 1.26 KB | 1.26 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.94 KB** | **10.94 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | +0.1% | 138.1 KB | 138.16 KB | 35.2 KB | 35.22 KB | FB_WWW_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1013 B** | **1013 B** | **601 B** | **602 B** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 0e4859dce635a9c9e0af3c6dfb23bc6d6a60b45c\n</p>\n"
] | 2020-03-05 13:51:23 | 2020-03-05 14:05:06 | 2020-03-05 14:05:01 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18221', 'html_url': 'https://github.com/facebook/react/pull/18221', 'diff_url': 'https://github.com/facebook/react/pull/18221.diff', 'patch_url': 'https://github.com/facebook/react/pull/18221.patch', 'merged_at': datetime.datetime(2020, 3, 5, 14, 5, 1)} | This re-exports the `enableModernEventSystem` flag so we can test this internally at FB. | {'url': 'https://api.github.com/repos/facebook/react/issues/18221/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18221/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18220 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18220/labels{/name} | https://api.github.com/repos/facebook/react/issues/18220/comments | https://api.github.com/repos/facebook/react/issues/18220/events | https://github.com/facebook/react/pull/18220 | 576,030,391 | MDExOlB1bGxSZXF1ZXN0Mzg0MDk3NzYy | 18,220 | [Blocks] Make it possible to have lazy initialized and lazy loaded Blocks | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18220/builds/13471) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit db9c751224c728bc0a1c15de71d6a7507df46b7d:\n\n|Sandbox| Source |\n|--|--|\n|[adoring-feather-fde9g](https://codesandbox.io/s/adoring-feather-fde9g)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: fa03206ee4352431198b678c00dca83027e7052d...db9c751224c728bc0a1c15de71d6a7507df46b7d</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | +0.3% | +0.2% | 123.84 KB | 124.16 KB | 38.64 KB | 38.73 KB | NODE_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.91 KB | 58.91 KB | 14.71 KB | 14.71 KB | UMD_DEV\nReactDOM-dev.js | +0.2% | +0.2% | 897.53 KB | 899.21 KB | 200.61 KB | 200.93 KB | FB_WWW_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.27 KB** | **10.27 KB** | **3.49 KB** | **3.5 KB** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | -0.0% | 137.25 KB | 137.25 KB | 35.06 KB | 35.06 KB | FB_WWW_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.96 KB** | **10.96 KB** | **4.17 KB** | **4.17 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | +0.2% | +0.2% | 872.76 KB | 874.43 KB | 195.47 KB | 195.79 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.3%** | **368.74 KB** | **369.8 KB** | **67.46 KB** | **67.67 KB** | **FB_WWW_PROD**\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 49.56 KB | 49.56 KB | 13.52 KB | 13.52 KB | NODE_DEV\nReactDOMTesting-profiling.js | +0.3% | +0.3% | 368.74 KB | 369.8 KB | 67.46 KB | 67.67 KB | FB_WWW_PROFILING\nreact-dom-server.node.development.js | 0.0% | 0.0% | 131 KB | 131 KB | 34.81 KB | 34.81 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.83 KB** | **20.83 KB** | **7.61 KB** | **7.61 KB** | **NODE_PROD**\nreact-dom.development.js | +0.2% | +0.2% | 912.84 KB | 914.63 KB | 199.76 KB | 200.08 KB | UMD_DEV\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 136.78 KB | 136.78 KB | 34.96 KB | 34.96 KB | UMD_DEV\n**react-dom.production.min.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.3%** | **119.89 KB** | **120.21 KB** | **38.28 KB** | **38.4 KB** | **UMD_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.51 KB** | **20.51 KB** | **7.51 KB** | **7.51 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | +0.3% | +0.2% | 123.54 KB | 123.86 KB | 39.47 KB | 39.54 KB | UMD_PROFILING\nreact-dom.development.js | +0.2% | +0.2% | 868.91 KB | 870.6 KB | 197.31 KB | 197.64 KB | NODE_DEV\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 129.78 KB | 129.78 KB | 34.55 KB | 34.55 KB | NODE_DEV\n**react-dom.production.min.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.2%** | **120.04 KB** | **120.36 KB** | **37.52 KB** | **37.6 KB** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.43 KB** | **20.43 KB** | **7.46 KB** | **7.46 KB** | **NODE_PROD**\n**ReactDOM-prod.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.3%** | **370.72 KB** | **371.78 KB** | **67.55 KB** | **67.77 KB** | **FB_WWW_PROD**\n**ReactDOMServer-prod.js** | **0.0%** | **0.0%** | **46.78 KB** | **46.78 KB** | **10.87 KB** | **10.87 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | +0.3% | +0.3% | 381.98 KB | 383.04 KB | 69.67 KB | 69.88 KB | FB_WWW_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.87 KB | 55.87 KB | 14.47 KB | 14.47 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.69 KB | 3.69 KB | 1.34 KB | 1.34 KB | NODE_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10 KB** | **10 KB** | **3.37 KB** | **3.38 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1.16 KB** | **1.16 KB** | **662 B** | **663 B** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 3.35 KB | 3.35 KB | 1.27 KB | 1.27 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.4%** | **1.19 KB** | **1.19 KB** | **697 B** | **700 B** | **UMD_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 2.95 KB | 2.95 KB | 1.18 KB | 1.18 KB | NODE_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1 KB** | **1 KB** | **609 B** | **611 B** | **NODE_PROD**\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-art.development.js | +0.3% | +0.2% | 634.18 KB | 635.96 KB | 133.2 KB | 133.49 KB | UMD_DEV\n**react-art.production.min.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.3%** | **106.64 KB** | **106.97 KB** | **32.25 KB** | **32.34 KB** | **UMD_PROD**\nreact-art.development.js | +0.3% | +0.3% | 538.39 KB | 540.08 KB | 115.6 KB | 115.91 KB | NODE_DEV\n**react-art.production.min.js** | **:small_red_triangle:+0.4%** | **:small_red_triangle:+0.4%** | **71.62 KB** | **71.94 KB** | **21.44 KB** | **21.53 KB** | **NODE_PROD**\nReactART-dev.js | +0.3% | +0.3% | 541.98 KB | 543.66 KB | 113.71 KB | 114.02 KB | FB_WWW_DEV\n**ReactART-prod.js** | **:small_red_triangle:+0.5%** | **:small_red_triangle:+0.5%** | **226.66 KB** | **227.72 KB** | **38.52 KB** | **38.73 KB** | **FB_WWW_PROD**\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler-reflection.development.js | 0.0% | 0.0% | 16.25 KB | 16.25 KB | 4.97 KB | 4.97 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **0.0%** | **0.0%** | **73.73 KB** | **73.73 KB** | **21.78 KB** | **21.78 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **2.81 KB** | **2.81 KB** | **1.21 KB** | **1.21 KB** | **NODE_PROD**\nreact-reconciler.development.js | +0.3% | +0.3% | 576.69 KB | 578.38 KB | 121.48 KB | 121.79 KB | NODE_DEV\n**react-reconciler.production.min.js** | **:small_red_triangle:+0.4%** | **:small_red_triangle:+0.4%** | **76.48 KB** | **76.8 KB** | **22.44 KB** | **22.54 KB** | **NODE_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: :small_red_triangle:+0.1%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against db9c751224c728bc0a1c15de71d6a7507df46b7d\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: fa03206ee4352431198b678c00dca83027e7052d...db9c751224c728bc0a1c15de71d6a7507df46b7d</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | +0.3% | +0.3% | 406.37 KB | 407.43 KB | 74.08 KB | 74.29 KB | FB_WWW_PROFILING\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 135.19 KB | 135.19 KB | 34.75 KB | 34.75 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1.15 KB** | **1.15 KB** | **653 B** | **654 B** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.05 KB** | **20.05 KB** | **7.42 KB** | **7.42 KB** | **UMD_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\nreact-dom.development.js | 0.0% | 0.0% | 884.16 KB | 884.16 KB | 194.85 KB | 194.85 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **9.99 KB** | **9.99 KB** | **3.36 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **116.01 KB** | **116.01 KB** | **37.17 KB** | **37.17 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.54 KB | 119.54 KB | 38.33 KB | 38.33 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | 0.0% | 841.41 KB | 841.41 KB | 192.42 KB | 192.42 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **116.09 KB** | **116.09 KB** | **36.5 KB** | **36.5 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.38 KB** | **20.38 KB** | **7.52 KB** | **7.53 KB** | **NODE_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.77 KB | 119.77 KB | 37.58 KB | 37.58 KB | NODE_PROFILING\nReactDOM-dev.js | +0.2% | +0.2% | 939.77 KB | 941.45 KB | 209.49 KB | 209.81 KB | FB_WWW_DEV\n**ReactDOM-prod.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.3%** | **395.04 KB** | **396.1 KB** | **71.91 KB** | **72.11 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.68 KB | 3.68 KB | 1.33 KB | 1.33 KB | NODE_DEV\nReactDOMTesting-dev.js | +0.2% | +0.2% | 899.4 KB | 901.08 KB | 201 KB | 201.32 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.3%** | **382.29 KB** | **383.35 KB** | **69.64 KB** | **69.84 KB** | **FB_WWW_PROD**\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 128.27 KB | 128.27 KB | 34.33 KB | 34.33 KB | NODE_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 53.77 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\nReactDOMTesting-profiling.js | +0.3% | +0.3% | 382.29 KB | 383.35 KB | 69.64 KB | 69.84 KB | FB_WWW_PROFILING\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **19.97 KB** | **19.97 KB** | **7.38 KB** | **7.38 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 3.34 KB | 3.34 KB | 1.26 KB | 1.26 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.94 KB** | **10.94 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.17 KB** | **1.17 KB** | **689 B** | **691 B** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | 0.0% | 138.1 KB | 138.1 KB | 35.2 KB | 35.2 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 49.55 KB | 49.55 KB | 13.51 KB | 13.51 KB | NODE_DEV\n**ReactDOMServer-prod.js** | **0.0%** | **0.0%** | **47.49 KB** | **47.49 KB** | **11.05 KB** | **11.05 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 2.94 KB | 2.94 KB | 1.17 KB | 1.17 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1013 B** | **1013 B** | **601 B** | **603 B** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.26 KB** | **10.26 KB** | **3.48 KB** | **3.49 KB** | **UMD_PROD**\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactART-dev.js | +0.3% | +0.3% | 567.69 KB | 569.37 KB | 118.97 KB | 119.28 KB | FB_WWW_DEV\n**ReactART-prod.js** | **:small_red_triangle:+0.5%** | **:small_red_triangle:+0.5%** | **233.84 KB** | **234.9 KB** | **39.73 KB** | **39.94 KB** | **FB_WWW_PROD**\n**react-art.production.min.js** | **0.0%** | **0.0%** | **104.21 KB** | **104.21 KB** | **31.61 KB** | **31.61 KB** | **UMD_PROD**\n**react-art.production.min.js** | **0.0%** | **0.0%** | **69.25 KB** | **69.25 KB** | **20.79 KB** | **20.79 KB** | **NODE_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: 0.0%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against db9c751224c728bc0a1c15de71d6a7507df46b7d\n</p>\n",
"The changing of `_fn` is same as Lazy. It changes. Even the functions have different call signatures so Flow should catch it. The thing that Flow doesn't have is \"state classes\" so there's no way to transition to a different type while staying in the type system so I have to briefly use \"any\" when changing the state. (It also has implications on threading.)\r\n\r\nThe initialization is unfortunate. There's a lot going on here. We can't throw in child fiber atm because that would bubble to the wrong parent potentially. We would also prevent siblings from warming up. I'm also not happy with the extra tuples created or the \"if thennable\" type check.\r\n\r\nIt took me like a month to get to this point and I'm still not happy with it. :)"
] | 2020-03-05 06:48:15 | 2020-03-06 23:14:47 | 2020-03-06 23:14:47 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18220', 'html_url': 'https://github.com/facebook/react/pull/18220', 'diff_url': 'https://github.com/facebook/react/pull/18220.diff', 'patch_url': 'https://github.com/facebook/react/pull/18220.patch', 'merged_at': datetime.datetime(2020, 3, 6, 23, 14, 47)} | This builds on a similar design as Lazy in https://github.com/facebook/react/pull/18217
The goal here is to make evaluating the query lazy but still allow render functions from different sources to reconcile against each other - even if they're lazy. In my first approach I hid the lazy loading into the "render" function wrapper which is not going to work since it doesn't reconcile against the same thing anymore then. | {'url': 'https://api.github.com/repos/facebook/react/issues/18220/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18220/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18219 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18219/labels{/name} | https://api.github.com/repos/facebook/react/issues/18219/comments | https://api.github.com/repos/facebook/react/issues/18219/events | https://github.com/facebook/react/issues/18219 | 575,999,061 | MDU6SXNzdWU1NzU5OTkwNjE= | 18,219 | Dev tools feature: I'd like make PR to add toggle ability for boolean prop/state types. | {'login': 'shahzeb1', 'id': 1383831, 'node_id': 'MDQ6VXNlcjEzODM4MzE=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1383831?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/shahzeb1', 'html_url': 'https://github.com/shahzeb1', 'followers_url': 'https://api.github.com/users/shahzeb1/followers', 'following_url': 'https://api.github.com/users/shahzeb1/following{/other_user}', 'gists_url': 'https://api.github.com/users/shahzeb1/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/shahzeb1/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/shahzeb1/subscriptions', 'organizations_url': 'https://api.github.com/users/shahzeb1/orgs', 'repos_url': 'https://api.github.com/users/shahzeb1/repos', 'events_url': 'https://api.github.com/users/shahzeb1/events{/privacy}', 'received_events_url': 'https://api.github.com/users/shahzeb1/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"could you set the value to undefined/null (or any other non boolean) if needed? It might not be common, but your change would make it impossible to do so, no? \r\n\r\ncc @bvaughn ",
"You're always welcome to make a PR to propose a UX change, @shahzeb1. I can't promise it will get merged though. The DevTools editing interface allows you to change between types in a way that a simple toggle wouldn't enable. `undefined` -> `boolean` or `boolean` -> `undefined` is one such example. I would not be open to any change that breaks this ability.",
"Good point. Yes a checkbox would just toggle booleans and not be able to set it to `undefined` (unless you change the value of the string, which is already the case).\r\n\r\nThanks for the quick feedback."
] | 2020-03-05 05:16:54 | 2020-03-05 19:27:47 | 2020-03-05 19:27:47 | NONE | null | null | null | Hello, on the now archived react-devtools repo I had worked on the ability to toggle (via a `checkbox` input) boolean values (from `true` to `false` and viceversa). I was unable to merge my PR because that repo was getting archived.
Do I have permission to add this feature into this repo and make a PR?
It would be a solid feature to have so that devs don't have to type "true" and "false", we could just click the `checkbox` input.
Thank you. | {'url': 'https://api.github.com/repos/facebook/react/issues/18219/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18219/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18218 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18218/labels{/name} | https://api.github.com/repos/facebook/react/issues/18218/comments | https://api.github.com/repos/facebook/react/issues/18218/events | https://github.com/facebook/react/pull/18218 | 575,982,716 | MDExOlB1bGxSZXF1ZXN0Mzg0MDU5MDE1 | 18,218 | Updated React Native home URL | {'login': 'visshaljagtap', 'id': 35190080, 'node_id': 'MDQ6VXNlcjM1MTkwMDgw', 'avatar_url': 'https://avatars.githubusercontent.com/u/35190080?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/visshaljagtap', 'html_url': 'https://github.com/visshaljagtap', 'followers_url': 'https://api.github.com/users/visshaljagtap/followers', 'following_url': 'https://api.github.com/users/visshaljagtap/following{/other_user}', 'gists_url': 'https://api.github.com/users/visshaljagtap/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/visshaljagtap/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/visshaljagtap/subscriptions', 'organizations_url': 'https://api.github.com/users/visshaljagtap/orgs', 'repos_url': 'https://api.github.com/users/visshaljagtap/repos', 'events_url': 'https://api.github.com/users/visshaljagtap/events{/privacy}', 'received_events_url': 'https://api.github.com/users/visshaljagtap/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18218/builds/13394) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 10adc955ed42d40fe481e7f7a772e2f835df9948:\n\n|Sandbox| Source |\n|--|--|\n|[cocky-merkle-3x4fv](https://codesandbox.io/s/cocky-merkle-3x4fv)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 10adc955ed42d40fe481e7f7a772e2f835df9948\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 10adc955ed42d40fe481e7f7a772e2f835df9948\n</p>\n",
"cool, thanks!"
] | 2020-03-05 04:21:46 | 2020-03-05 13:15:47 | 2020-03-05 13:15:47 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18218', 'html_url': 'https://github.com/facebook/react/pull/18218', 'diff_url': 'https://github.com/facebook/react/pull/18218.diff', 'patch_url': 'https://github.com/facebook/react/pull/18218.patch', 'merged_at': datetime.datetime(2020, 3, 5, 13, 15, 47)} | <!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.
Before submitting a pull request, please make sure the following is done:
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
9. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
10. If you haven't already, complete the CLA.
Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->
## Summary
Updated React Native home URL in react-dev-tools
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. -->
| {'url': 'https://api.github.com/repos/facebook/react/issues/18218/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18218/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18217 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18217/labels{/name} | https://api.github.com/repos/facebook/react/issues/18217/comments | https://api.github.com/repos/facebook/react/issues/18217/events | https://github.com/facebook/react/pull/18217 | 575,977,562 | MDExOlB1bGxSZXF1ZXN0Mzg0MDU1MDI4 | 18,217 | Remove _ctor field from Lazy components | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18217/builds/13396) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 01bf1970c67bb0edf5513ad62abd485993cdfa01:\n\n|Sandbox| Source |\n|--|--|\n|[exciting-maxwell-4i44f](https://codesandbox.io/s/exciting-maxwell-4i44f)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 2fe0fbb05ef2c56db760122e995b923528e6ce8f...01bf1970c67bb0edf5513ad62abd485993cdfa01</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | 0.0% | 0.0% | 406.33 KB | 406.37 KB | 74.07 KB | 74.08 KB | FB_WWW_PROFILING\nreact-dom-server.browser.development.js | +0.3% | +0.3% | 134.78 KB | 135.19 KB | 34.64 KB | 34.75 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1.15 KB** | **1.15 KB** | **653 B** | **654 B** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **20.03 KB** | **20.05 KB** | **7.41 KB** | **7.42 KB** | **UMD_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\nreact-dom.development.js | 0.0% | +0.1% | 883.74 KB | 884.16 KB | 194.69 KB | 194.85 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **9.99 KB** | **9.99 KB** | **3.36 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **116 KB** | **116.01 KB** | **37.14 KB** | **37.17 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | -0.0% | 119.53 KB | 119.54 KB | 38.34 KB | 38.33 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | +0.1% | 841.01 KB | 841.41 KB | 192.31 KB | 192.42 KB | NODE_DEV\nreact-dom-server.node.development.js | +0.3% | +0.3% | 129.09 KB | 129.48 KB | 34.47 KB | 34.58 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **116.08 KB** | **116.09 KB** | **36.5 KB** | **36.5 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **20.36 KB** | **20.38 KB** | **7.52 KB** | **7.53 KB** | **NODE_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.76 KB | 119.77 KB | 37.58 KB | 37.58 KB | NODE_PROFILING\nReactDOM-dev.js | 0.0% | +0.1% | 939.37 KB | 939.77 KB | 209.37 KB | 209.49 KB | FB_WWW_DEV\n**ReactDOM-prod.js** | **0.0%** | **0.0%** | **395 KB** | **395.04 KB** | **71.89 KB** | **71.91 KB** | **FB_WWW_PROD**\nReactDOMTesting-dev.js | 0.0% | +0.1% | 899 KB | 899.4 KB | 200.88 KB | 201.01 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **0.0%** | **0.0%** | **382.25 KB** | **382.29 KB** | **69.63 KB** | **69.64 KB** | **FB_WWW_PROD**\nreact-dom-server.browser.development.js | +0.3% | +0.3% | 127.87 KB | 128.27 KB | 34.21 KB | 34.33 KB | NODE_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 53.77 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\nReactDOMTesting-profiling.js | 0.0% | 0.0% | 382.25 KB | 382.29 KB | 69.63 KB | 69.64 KB | FB_WWW_PROFILING\n**react-dom-server.browser.production.min.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **19.95 KB** | **19.97 KB** | **7.37 KB** | **7.38 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.1% | 3.34 KB | 3.34 KB | 1.26 KB | 1.26 KB | UMD_DEV\nReactDOMServer-dev.js | +0.3% | +0.3% | 137.7 KB | 138.1 KB | 35.08 KB | 35.2 KB | FB_WWW_DEV\n**ReactDOMServer-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **47.45 KB** | **47.49 KB** | **11.04 KB** | **11.05 KB** | **FB_WWW_PROD**\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1013 B** | **1013 B** | **601 B** | **602 B** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **10.26 KB** | **10.26 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-dev.js | +0.1% | +0.1% | 614.29 KB | 614.69 KB | 132.75 KB | 132.86 KB | RN_OSS_DEV\nReactNativeRenderer-dev.js | +0.1% | +0.1% | 632.19 KB | 632.59 KB | 137.02 KB | 137.13 KB | RN_OSS_DEV\n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **259.75 KB** | **259.8 KB** | **45.19 KB** | **45.2 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.09 KB | 271.13 KB | 47.33 KB | 47.34 KB | RN_OSS_PROFILING\n**ReactFabric-prod.js** | **0.0%** | **0.0%** | **251.72 KB** | **251.76 KB** | **43.7 KB** | **43.71 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | 0.0% | 0.0% | 263.05 KB | 263.1 KB | 45.87 KB | 45.88 KB | RN_OSS_PROFILING\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactART-dev.js | +0.1% | +0.1% | 567.29 KB | 567.69 KB | 118.85 KB | 118.97 KB | FB_WWW_DEV\n**ReactART-prod.js** | **0.0%** | **0.0%** | **233.79 KB** | **233.84 KB** | **39.73 KB** | **39.74 KB** | **FB_WWW_PROD**\nreact-art.development.js | +0.1% | +0.1% | 614.59 KB | 615.01 KB | 129.66 KB | 129.78 KB | UMD_DEV\n**react-art.production.min.js** | **0.0%** | **0.0%** | **104.2 KB** | **104.21 KB** | **31.6 KB** | **31.61 KB** | **UMD_PROD**\nreact-art.development.js | +0.1% | +0.1% | 519.57 KB | 519.97 KB | 112.04 KB | 112.16 KB | NODE_DEV\n**react-art.production.min.js** | **0.0%** | **0.0%** | **69.23 KB** | **69.25 KB** | **20.78 KB** | **20.79 KB** | **NODE_PROD**\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactTestRenderer-dev.js | +0.1% | +0.1% | 553.06 KB | 553.46 KB | 116.7 KB | 116.82 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | 0.0% | 38.39 KB | 38.39 KB | 9.29 KB | 9.29 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **-0.0%** | **12.91 KB** | **12.91 KB** | **3.93 KB** | **3.93 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 551.91 KB | 552.33 KB | 114.86 KB | 114.97 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **0.0%** | **71.2 KB** | **71.22 KB** | **21.65 KB** | **21.66 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 525.99 KB | 526.38 KB | 113.55 KB | 113.67 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **0.0%** | **71.02 KB** | **71.04 KB** | **21.34 KB** | **21.34 KB** | **NODE_PROD**\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler.development.js | +0.1% | +0.1% | 555.54 KB | 555.93 KB | 117.48 KB | 117.59 KB | NODE_DEV\nreact-reconciler-reflection.development.js | +0.4% | +0.7% | 16.17 KB | 16.24 KB | 4.93 KB | 4.96 KB | NODE_DEV\n**react-reconciler.production.min.js** | **0.0%** | **0.0%** | **73.69 KB** | **73.71 KB** | **21.76 KB** | **21.77 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **2.8 KB** | **2.8 KB** | **1.2 KB** | **1.2 KB** | **NODE_PROD**\nreact-reconciler-persistent.development.js | +0.1% | +0.1% | 554.18 KB | 554.58 KB | 117.33 KB | 117.45 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **0.0%** | **0.0%** | **73.7 KB** | **73.72 KB** | **21.77 KB** | **21.78 KB** | **NODE_PROD**\n\n </details>\n \n\nReactDOM: size: :small_red_triangle:+0.1%, gzip: :small_red_triangle:+0.1%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 01bf1970c67bb0edf5513ad62abd485993cdfa01\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 2fe0fbb05ef2c56db760122e995b923528e6ce8f...01bf1970c67bb0edf5513ad62abd485993cdfa01</p>\n\n\n \n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-art.development.js | +0.1% | +0.1% | 633.76 KB | 634.18 KB | 133.08 KB | 133.2 KB | UMD_DEV\n**react-art.production.min.js** | **0.0%** | **0.0%** | **106.63 KB** | **106.64 KB** | **32.24 KB** | **32.25 KB** | **UMD_PROD**\nreact-art.development.js | +0.1% | +0.1% | 538 KB | 538.39 KB | 115.48 KB | 115.6 KB | NODE_DEV\n**react-art.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **71.6 KB** | **71.62 KB** | **21.43 KB** | **21.44 KB** | **NODE_PROD**\nReactART-dev.js | +0.1% | +0.1% | 541.58 KB | 541.98 KB | 113.58 KB | 113.71 KB | FB_WWW_DEV\n**ReactART-prod.js** | **0.0%** | **0.0%** | **226.62 KB** | **226.66 KB** | **38.51 KB** | **38.52 KB** | **FB_WWW_PROD**\n\n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.82 KB | 123.84 KB | 38.64 KB | 38.64 KB | NODE_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.91 KB | 58.91 KB | 14.71 KB | 14.71 KB | UMD_DEV\nReactDOM-dev.js | 0.0% | +0.1% | 897.13 KB | 897.53 KB | 200.49 KB | 200.61 KB | FB_WWW_DEV\nReactDOMServer-dev.js | +0.3% | +0.3% | 136.85 KB | 137.25 KB | 34.94 KB | 35.06 KB | FB_WWW_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.96 KB** | **10.96 KB** | **4.17 KB** | **4.17 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | 0.0% | +0.1% | 872.36 KB | 872.76 KB | 195.35 KB | 195.47 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **0.0%** | **0.0%** | **368.7 KB** | **368.74 KB** | **67.45 KB** | **67.46 KB** | **FB_WWW_PROD**\nReactDOMTesting-profiling.js | 0.0% | 0.0% | 368.7 KB | 368.74 KB | 67.45 KB | 67.46 KB | FB_WWW_PROFILING\nreact-dom-server.node.development.js | +0.3% | +0.3% | 130.6 KB | 131 KB | 34.69 KB | 34.81 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **20.82 KB** | **20.83 KB** | **7.6 KB** | **7.61 KB** | **NODE_PROD**\nreact-dom.development.js | 0.0% | +0.1% | 912.43 KB | 912.84 KB | 199.6 KB | 199.77 KB | UMD_DEV\nreact-dom-server.browser.development.js | +0.3% | +0.3% | 136.37 KB | 136.78 KB | 34.84 KB | 34.96 KB | UMD_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **119.87 KB** | **119.89 KB** | **38.29 KB** | **38.28 KB** | **UMD_PROD**\n**react-dom-server.browser.production.min.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **20.49 KB** | **20.51 KB** | **7.5 KB** | **7.51 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | +0.1% | 123.52 KB | 123.54 KB | 39.44 KB | 39.47 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | +0.1% | 868.51 KB | 868.91 KB | 197.21 KB | 197.31 KB | NODE_DEV\nreact-dom-server.browser.development.js | +0.3% | +0.3% | 129.38 KB | 129.78 KB | 34.43 KB | 34.55 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **120.02 KB** | **120.04 KB** | **37.52 KB** | **37.52 KB** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **20.41 KB** | **20.43 KB** | **7.45 KB** | **7.46 KB** | **NODE_PROD**\n**ReactDOM-prod.js** | **0.0%** | **0.0%** | **370.67 KB** | **370.72 KB** | **67.55 KB** | **67.55 KB** | **FB_WWW_PROD**\n**ReactDOMServer-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **46.74 KB** | **46.78 KB** | **10.86 KB** | **10.87 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | 0.0% | 0.0% | 381.94 KB | 381.98 KB | 69.66 KB | 69.67 KB | FB_WWW_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.87 KB | 55.87 KB | 14.47 KB | 14.47 KB | NODE_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **10 KB** | **10 KB** | **3.37 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1.16 KB** | **1.16 KB** | **661 B** | **662 B** | **NODE_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **1.19 KB** | **1.19 KB** | **698 B** | **699 B** | **UMD_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.1% | 2.95 KB | 2.95 KB | 1.18 KB | 1.18 KB | NODE_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1 KB** | **1 KB** | **609 B** | **610 B** | **NODE_PROD**\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactTestRenderer-dev.js | +0.1% | +0.1% | 553.07 KB | 553.47 KB | 116.7 KB | 116.83 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | 0.0% | 38.4 KB | 38.4 KB | 9.3 KB | 9.3 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **-0.0%** | **12.92 KB** | **12.92 KB** | **3.94 KB** | **3.94 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 551.94 KB | 552.35 KB | 114.87 KB | 114.98 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **0.0%** | **71.23 KB** | **71.25 KB** | **21.66 KB** | **21.67 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 526.01 KB | 526.41 KB | 113.56 KB | 113.68 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **0.0%** | **71.04 KB** | **71.06 KB** | **21.35 KB** | **21.36 KB** | **NODE_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **259.77 KB** | **259.81 KB** | **45.2 KB** | **45.21 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.1 KB | 271.15 KB | 47.34 KB | 47.35 KB | RN_OSS_PROFILING\n**ReactFabric-prod.js** | **0.0%** | **0.0%** | **251.73 KB** | **251.77 KB** | **43.71 KB** | **43.72 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | 0.0% | 0.0% | 263.07 KB | 263.11 KB | 45.88 KB | 45.89 KB | RN_OSS_PROFILING\nReactFabric-dev.js | +0.1% | +0.1% | 616.94 KB | 617.34 KB | 133.08 KB | 133.2 KB | RN_FB_DEV\n**ReactFabric-prod.js** | **0.0%** | **0.0%** | **251.88 KB** | **251.93 KB** | **43.74 KB** | **43.75 KB** | **RN_FB_PROD**\nReactNativeRenderer-dev.js | +0.1% | +0.1% | 632.2 KB | 632.6 KB | 137.03 KB | 137.13 KB | RN_OSS_DEV\nReactFabric-profiling.js | 0.0% | 0.0% | 263.21 KB | 263.26 KB | 45.93 KB | 45.93 KB | RN_FB_PROFILING\nReactNativeRenderer-dev.js | +0.1% | +0.1% | 634.83 KB | 635.23 KB | 137.37 KB | 137.47 KB | RN_FB_DEV\n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **259.91 KB** | **259.96 KB** | **45.22 KB** | **45.23 KB** | **RN_FB_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.24 KB | 271.29 KB | 47.39 KB | 47.4 KB | RN_FB_PROFILING\nReactFabric-dev.js | +0.1% | +0.1% | 614.3 KB | 614.7 KB | 132.75 KB | 132.87 KB | RN_OSS_DEV\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler-persistent.development.js | +0.1% | +0.1% | 554.19 KB | 554.59 KB | 117.33 KB | 117.46 KB | NODE_DEV\nreact-reconciler-reflection.development.js | +0.4% | +0.6% | 16.18 KB | 16.25 KB | 4.93 KB | 4.97 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **0.0%** | **0.0%** | **73.71 KB** | **73.73 KB** | **21.78 KB** | **21.78 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **2.81 KB** | **2.81 KB** | **1.21 KB** | **1.21 KB** | **NODE_PROD**\nreact-reconciler.development.js | +0.1% | +0.1% | 576.29 KB | 576.69 KB | 121.36 KB | 121.48 KB | NODE_DEV\n**react-reconciler.production.min.js** | **0.0%** | **0.0%** | **76.46 KB** | **76.48 KB** | **22.44 KB** | **22.44 KB** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 01bf1970c67bb0edf5513ad62abd485993cdfa01\n</p>\n"
] | 2020-03-05 04:04:01 | 2020-03-05 04:52:49 | 2020-03-05 04:52:49 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18217', 'html_url': 'https://github.com/facebook/react/pull/18217', 'diff_url': 'https://github.com/facebook/react/pull/18217.diff', 'patch_url': 'https://github.com/facebook/react/pull/18217.patch', 'merged_at': datetime.datetime(2020, 3, 5, 4, 52, 49)} | This field is not needed because it's only used before we've initialized, and we don't have anything else to store before we've initialized.
This isn't an important perf optimization by itself but this refactor is motivated by lining it up with the same work on Blocks. | {'url': 'https://api.github.com/repos/facebook/react/issues/18217/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18217/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18216 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18216/labels{/name} | https://api.github.com/repos/facebook/react/issues/18216/comments | https://api.github.com/repos/facebook/react/issues/18216/events | https://github.com/facebook/react/pull/18216 | 575,929,041 | MDExOlB1bGxSZXF1ZXN0Mzg0MDE2Mjk3 | 18,216 | Remove event pooling in the modern system | {'login': 'gaearon', 'id': 810438, 'node_id': 'MDQ6VXNlcjgxMDQzOA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/810438?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/gaearon', 'html_url': 'https://github.com/gaearon', 'followers_url': 'https://api.github.com/users/gaearon/followers', 'following_url': 'https://api.github.com/users/gaearon/following{/other_user}', 'gists_url': 'https://api.github.com/users/gaearon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/gaearon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/gaearon/subscriptions', 'organizations_url': 'https://api.github.com/users/gaearon/orgs', 'repos_url': 'https://api.github.com/users/gaearon/repos', 'events_url': 'https://api.github.com/users/gaearon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/gaearon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18216/builds/13383) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 029f99a9bc33cc5319823169d330403d0c4aed35:\n\n|Sandbox| Source |\n|--|--|\n|[focused-sky-ov8pr](https://codesandbox.io/s/focused-sky-ov8pr)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 2fe0fbb05ef2c56db760122e995b923528e6ce8f...029f99a9bc33cc5319823169d330403d0c4aed35</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.82 KB | 123.82 KB | 38.64 KB | 38.64 KB | NODE_PROFILING\nreact-dom-unstable-native-dependencies.development.js | +0.9% | +0.5% | 58.91 KB | 59.42 KB | 14.71 KB | 14.78 KB | UMD_DEV\nReactDOM-dev.js | +0.1% | 0.0% | 897.13 KB | 897.63 KB | 200.49 KB | 200.58 KB | FB_WWW_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **10.27 KB** | **10.27 KB** | **3.49 KB** | **3.5 KB** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | 0.0% | 136.85 KB | 136.85 KB | 34.94 KB | 34.94 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | +0.7% | +0.4% | 53.78 KB | 54.17 KB | 14.01 KB | 14.07 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.96 KB** | **10.96 KB** | **4.17 KB** | **4.17 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | +0.1% | 0.0% | 872.36 KB | 872.86 KB | 195.35 KB | 195.44 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **0.0%** | **0.0%** | **368.7 KB** | **368.73 KB** | **67.45 KB** | **67.46 KB** | **FB_WWW_PROD**\nreact-dom-test-utils.development.js | +0.7% | +0.5% | 49.56 KB | 49.92 KB | 13.52 KB | 13.59 KB | NODE_DEV\nReactDOMTesting-profiling.js | 0.0% | 0.0% | 368.7 KB | 368.73 KB | 67.45 KB | 67.46 KB | FB_WWW_PROFILING\nreact-dom-server.node.development.js | 0.0% | 0.0% | 130.6 KB | 130.6 KB | 34.69 KB | 34.69 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.82 KB** | **20.82 KB** | **7.6 KB** | **7.6 KB** | **NODE_PROD**\nreact-dom.development.js | 0.0% | 0.0% | 912.43 KB | 912.88 KB | 199.6 KB | 199.7 KB | UMD_DEV\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 136.37 KB | 136.37 KB | 34.84 KB | 34.84 KB | UMD_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **119.87 KB** | **119.87 KB** | **38.29 KB** | **38.29 KB** | **UMD_PROD**\nReactTestUtils-dev.js | +0.9% | +0.4% | 51.31 KB | 51.76 KB | 13.7 KB | 13.76 KB | FB_WWW_DEV\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.49 KB** | **20.49 KB** | **7.5 KB** | **7.5 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.52 KB | 123.52 KB | 39.44 KB | 39.45 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | 0.0% | 868.51 KB | 868.93 KB | 197.21 KB | 197.29 KB | NODE_DEV\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 129.38 KB | 129.38 KB | 34.43 KB | 34.43 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **120.02 KB** | **120.02 KB** | **37.52 KB** | **37.52 KB** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.41 KB** | **20.41 KB** | **7.45 KB** | **7.45 KB** | **NODE_PROD**\n**ReactDOM-prod.js** | **0.0%** | **0.0%** | **370.67 KB** | **370.7 KB** | **67.55 KB** | **67.56 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | 0.0% | 0.0% | 381.94 KB | 381.96 KB | 69.66 KB | 69.67 KB | FB_WWW_PROFILING\nreact-dom-unstable-native-dependencies.development.js | +0.9% | +0.6% | 55.87 KB | 56.35 KB | 14.47 KB | 14.56 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.69 KB | 3.69 KB | 1.34 KB | 1.34 KB | NODE_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **10 KB** | **10 KB** | **3.37 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.16 KB** | **1.16 KB** | **661 B** | **663 B** | **NODE_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **1.19 KB** | **1.19 KB** | **698 B** | **699 B** | **UMD_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.1% | 2.95 KB | 2.95 KB | 1.18 KB | 1.18 KB | NODE_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1 KB** | **1 KB** | **609 B** | **610 B** | **NODE_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **259.77 KB** | **259.79 KB** | **45.2 KB** | **45.2 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.1 KB | 271.13 KB | 47.34 KB | 47.35 KB | RN_OSS_PROFILING\n**ReactFabric-prod.js** | **0.0%** | **0.0%** | **251.73 KB** | **251.76 KB** | **43.71 KB** | **43.71 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | 0.0% | 0.0% | 263.07 KB | 263.09 KB | 45.88 KB | 45.89 KB | RN_OSS_PROFILING\nReactFabric-dev.js | +0.1% | +0.1% | 616.94 KB | 617.56 KB | 133.08 KB | 133.17 KB | RN_FB_DEV\n**ReactFabric-prod.js** | **0.0%** | **0.0%** | **251.88 KB** | **251.91 KB** | **43.74 KB** | **43.75 KB** | **RN_FB_PROD**\nReactNativeRenderer-dev.js | +0.1% | 0.0% | 632.2 KB | 632.82 KB | 137.03 KB | 137.09 KB | RN_OSS_DEV\nReactFabric-profiling.js | 0.0% | 0.0% | 263.21 KB | 263.24 KB | 45.93 KB | 45.93 KB | RN_FB_PROFILING\nReactNativeRenderer-dev.js | +0.1% | 0.0% | 634.83 KB | 635.45 KB | 137.37 KB | 137.43 KB | RN_FB_DEV\n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **259.91 KB** | **259.94 KB** | **45.22 KB** | **45.23 KB** | **RN_FB_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.24 KB | 271.27 KB | 47.39 KB | 47.4 KB | RN_FB_PROFILING\nReactFabric-dev.js | +0.1% | +0.1% | 614.3 KB | 614.92 KB | 132.75 KB | 132.84 KB | RN_OSS_DEV\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: 0.0%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 029f99a9bc33cc5319823169d330403d0c4aed35\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 2fe0fbb05ef2c56db760122e995b923528e6ce8f...029f99a9bc33cc5319823169d330403d0c4aed35</p>\n\n\n \n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-dev.js | +0.1% | +0.1% | 614.29 KB | 614.91 KB | 132.75 KB | 132.83 KB | RN_OSS_DEV\nReactNativeRenderer-dev.js | +0.1% | 0.0% | 632.19 KB | 632.81 KB | 137.02 KB | 137.08 KB | RN_OSS_DEV\n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **259.75 KB** | **259.78 KB** | **45.19 KB** | **45.19 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.09 KB | 271.12 KB | 47.33 KB | 47.34 KB | RN_OSS_PROFILING\n**ReactFabric-prod.js** | **0.0%** | **0.0%** | **251.72 KB** | **251.74 KB** | **43.7 KB** | **43.71 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | 0.0% | 0.0% | 263.05 KB | 263.08 KB | 45.87 KB | 45.88 KB | RN_OSS_PROFILING\n\n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | 0.0% | 0.0% | 406.33 KB | 406.36 KB | 74.07 KB | 74.08 KB | FB_WWW_PROFILING\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1.15 KB** | **1.15 KB** | **653 B** | **654 B** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.03 KB** | **20.03 KB** | **7.41 KB** | **7.41 KB** | **UMD_PROD**\nReactTestUtils-dev.js | +0.9% | +0.4% | 51.31 KB | 51.76 KB | 13.7 KB | 13.75 KB | FB_WWW_DEV\nreact-dom-unstable-native-dependencies.development.js | +0.9% | +0.6% | 55.86 KB | 56.34 KB | 14.46 KB | 14.55 KB | NODE_DEV\nreact-dom.development.js | +0.1% | 0.0% | 883.74 KB | 884.2 KB | 194.69 KB | 194.78 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **9.99 KB** | **9.99 KB** | **3.36 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **116 KB** | **116 KB** | **37.14 KB** | **37.14 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.53 KB | 119.53 KB | 38.34 KB | 38.34 KB | UMD_PROFILING\nreact-dom.development.js | +0.1% | 0.0% | 841.01 KB | 841.44 KB | 192.31 KB | 192.4 KB | NODE_DEV\nreact-dom-server.node.development.js | 0.0% | 0.0% | 129.09 KB | 129.09 KB | 34.47 KB | 34.47 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **116.08 KB** | **116.08 KB** | **36.5 KB** | **36.5 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.36 KB** | **20.36 KB** | **7.52 KB** | **7.52 KB** | **NODE_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.76 KB | 119.76 KB | 37.58 KB | 37.58 KB | NODE_PROFILING\nReactDOM-dev.js | +0.1% | 0.0% | 939.37 KB | 939.88 KB | 209.37 KB | 209.47 KB | FB_WWW_DEV\n**ReactDOM-prod.js** | **0.0%** | **0.0%** | **395 KB** | **395.02 KB** | **71.89 KB** | **71.9 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.68 KB | 3.68 KB | 1.33 KB | 1.33 KB | NODE_DEV\nReactDOMTesting-dev.js | +0.1% | +0.1% | 899 KB | 899.51 KB | 200.88 KB | 200.99 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **0.0%** | **0.0%** | **382.25 KB** | **382.27 KB** | **69.63 KB** | **69.63 KB** | **FB_WWW_PROD**\nreact-dom-test-utils.development.js | +0.7% | +0.4% | 53.77 KB | 54.15 KB | 14 KB | 14.06 KB | UMD_DEV\nReactDOMTesting-profiling.js | 0.0% | 0.0% | 382.25 KB | 382.27 KB | 69.63 KB | 69.63 KB | FB_WWW_PROFILING\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **19.95 KB** | **19.95 KB** | **7.37 KB** | **7.37 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.1% | 3.34 KB | 3.34 KB | 1.26 KB | 1.26 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.94 KB** | **10.94 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **1.17 KB** | **1.17 KB** | **690 B** | **691 B** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | 0.0% | 137.7 KB | 137.7 KB | 35.08 KB | 35.08 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | +0.7% | +0.5% | 49.55 KB | 49.91 KB | 13.51 KB | 13.58 KB | NODE_DEV\n**ReactDOMServer-prod.js** | **0.0%** | **0.0%** | **47.45 KB** | **47.45 KB** | **11.04 KB** | **11.04 KB** | **FB_WWW_PROD**\n**react-dom-test-utils.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | +0.9% | +0.5% | 58.9 KB | 59.41 KB | 14.7 KB | 14.78 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1013 B** | **1013 B** | **601 B** | **602 B** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.26 KB** | **10.26 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: 0.0%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 029f99a9bc33cc5319823169d330403d0c4aed35\n</p>\n",
"> but since we're changing a bunch of things about events anyway, maybe we can sneak it in?\r\n\r\nThis is the wrong intuition and I think we should probably wait. There are a ton of things that we should be doing that we're not doing and we really need to hold the line hard. If we were to introduce breaking changes there are a number of other that would be higher pri than this.\r\n\r\nAny small breaking change adds to the risk that people can't upgrade to the next major. If they can't upgrade to the next major they can't isolate a small subsection of their site. If they can't do that, they won't be able to adopt the next major after that at all.\r\n\r\n*All* the breaking changes in the next major should only be in service of unlocking the ability to pin a subtree to an old version which is the point of the \"modern system\". I'd even go as far as saying we shouldn't enable new warnings in 17.0. Only in a future minor.",
"Behind a different flag that we can do it next one would be make sense though.",
"I wonder if we can go further and remove the heavy synthetic event system that requires all property names to be hardcoded so we can copy them to a small object that only sets the target and prototype links to the nativeEvent?",
"@philipp-spiess This part of Seb's comment probably applies here:\r\n\r\n>There are a ton of things that we should be doing that we're not doing and we really need to hold the line hard. If we were to introduce breaking changes there are a number of other that would be higher pri than this.",
"I made a follow up to this PR in https://github.com/facebook/react/pull/18969."
] | 2020-03-05 01:22:39 | 2020-05-21 11:04:26 | 2020-05-21 11:04:26 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18216', 'html_url': 'https://github.com/facebook/react/pull/18216', 'diff_url': 'https://github.com/facebook/react/pull/18216.diff', 'patch_url': 'https://github.com/facebook/react/pull/18216.patch', 'merged_at': None} | This is a proposal.
Event pooling saves allocations during high firing events, but adds a bit overhead in "releasing", "destroying" and "reusing" instances. I'm not sure this is actually beneficial. Nobody else is doing it so it's not like this is a common practice. I think maybe we can experiment with dropping it altogether. We didn't do this before because it's technically a breaking change, but since we're changing a bunch of things about events anyway, maybe we can sneak it in? It's less of a chance than the move to roots, for example.
Pooling is confusing. For example, not being to access `e.target` in the `setState` updater has been a pain. Although maybe reading that early is best practice so you capture the right value etc. But the way it currently fails is very unintuitive. So maybe it's worth fixing even if we add a lint warning against that. I think the conceptual simplicity win is still valuable.
Effectively this moves all pooling related code behind a flag. I kept `getPooled` because it's scattered across the codebase, but in modern mode this just calls the constructor immediately. I also kept the public API, but `persist` is a no-op and `isPersistent` always returns true in modern mode. | {'url': 'https://api.github.com/repos/facebook/react/issues/18216/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18216/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18215 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18215/labels{/name} | https://api.github.com/repos/facebook/react/issues/18215/comments | https://api.github.com/repos/facebook/react/issues/18215/events | https://github.com/facebook/react/pull/18215 | 575,899,711 | MDExOlB1bGxSZXF1ZXN0MzgzOTkxNDE4 | 18,215 | Modern Event System: Support nested portal/root boundaries - Alternative approach | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18215/builds/13373) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit e1a0e9154cdfe11e0502f419d4e328dbec9109ef:\n\n|Sandbox| Source |\n|--|--|\n|[gallant-hooks-fjmmn](https://codesandbox.io/s/gallant-hooks-fjmmn)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against e1a0e9154cdfe11e0502f419d4e328dbec9109ef\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against e1a0e9154cdfe11e0502f419d4e328dbec9109ef\n</p>\n",
"To simplify things, I ported the changes from this PR into https://github.com/facebook/react/pull/18201."
] | 2020-03-05 00:06:43 | 2020-03-05 00:48:02 | 2020-03-05 00:48:02 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18215', 'html_url': 'https://github.com/facebook/react/pull/18215', 'diff_url': 'https://github.com/facebook/react/pull/18215.diff', 'patch_url': 'https://github.com/facebook/react/pull/18215.patch', 'merged_at': None} | This is an alternative to https://github.com/facebook/react/pull/18201. Instead of letting the root handle its events and the portal handle its events, this always lets the portal handle any events that targets the portal.
There's a subtle difference in semantics between these approaches. I added a test to show the capture/bubble phase order for React events.
The other things is whether non-React intermediate components between a Portal and a Root, are allowed to stopPropagation to the root.
An argument for why they shouldn't is that Portals don't behave as if they're rendered at that place in the DOM. For better or worse. They behave as if they're rendered in the place in the React tree. So there is nothing in between that calls stopPropagation in that world. It's counter intuitive but it's how the Portals are currently designed.
This approach sticks closer to the preexisting semantics. For better or worse. | {'url': 'https://api.github.com/repos/facebook/react/issues/18215/reactions', 'total_count': 1, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 1} | https://api.github.com/repos/facebook/react/issues/18215/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18214 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18214/labels{/name} | https://api.github.com/repos/facebook/react/issues/18214/comments | https://api.github.com/repos/facebook/react/issues/18214/events | https://github.com/facebook/react/issues/18214 | 575,746,214 | MDU6SXNzdWU1NzU3NDYyMTQ= | 18,214 | Bug: [eslint-plugin-react-hooks] exhaustive-deps doesn't allow for array hashing | {'login': 'cowboy', 'id': 54051, 'node_id': 'MDQ6VXNlcjU0MDUx', 'avatar_url': 'https://avatars.githubusercontent.com/u/54051?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/cowboy', 'html_url': 'https://github.com/cowboy', 'followers_url': 'https://api.github.com/users/cowboy/followers', 'following_url': 'https://api.github.com/users/cowboy/following{/other_user}', 'gists_url': 'https://api.github.com/users/cowboy/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/cowboy/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/cowboy/subscriptions', 'organizations_url': 'https://api.github.com/users/cowboy/orgs', 'repos_url': 'https://api.github.com/users/cowboy/repos', 'events_url': 'https://api.github.com/users/cowboy/events{/privacy}', 'received_events_url': 'https://api.github.com/users/cowboy/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"> There should be some way to do this?\r\n\r\nThere is: `eslint-disable-next-line`",
"> There is: `eslint-disable-next-line`\r\n\r\nSure, that's what I'm doing right now. I just wanted to see if there was an official opinion on this!",
"Try this Solution:\r\n```\r\nconst getIdsArrayHash = useMemo(()=>ids.join(\"-\"),[ids]);\r\n useEffect(() => {\r\n addLog(`ids array contents changed to ${ids}`);\r\n }, [getIdsArrayHash,ids]);\r\n```",
"Silencing the lint is the appropriate solution here. That's essentially the same thing you're asking for — a way to mark some code as \"I know what I'm doing\".'"
] | 2020-03-04 20:30:40 | 2020-03-30 15:17:33 | 2020-03-30 15:17:33 | NONE | null | null | null | I'm not sure how to file this. Please let me know if I need to adjust anything. Thanks!
React version: 16.13.0
## Steps To Reproduce
1. Create a `useEffect` hook that accesses an array whose identity might change, even when its contents do not
2. Attempt to provide a hashed value of the array as a dependency
3. See `react-hooks/exhaustive-deps` give the following error: **"React Hook useEffect has a missing dependency"**
![image](https://user-images.githubusercontent.com/54051/75925359-93415a00-5e36-11ea-8675-5cceced3e1e1.png)
![image](https://user-images.githubusercontent.com/54051/75925362-96d4e100-5e36-11ea-93b1-3ce713c1356d.png)
Link to code example:
https://codesandbox.io/s/eloquent-hellman-8n4hz
## The current behavior
There doesn't seem to be any way to tell exhaustive-deps to allow a function to be used to calculate a deterministic hash of a dependent array for the purpose of knowing when that array's contents have changed (since `useEffect` compares arrays by identity, not by contents)
## The expected behavior
There should be _some_ way to do this? | {'url': 'https://api.github.com/repos/facebook/react/issues/18214/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18214/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18213 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18213/labels{/name} | https://api.github.com/repos/facebook/react/issues/18213/comments | https://api.github.com/repos/facebook/react/issues/18213/events | https://github.com/facebook/react/pull/18213 | 575,708,753 | MDExOlB1bGxSZXF1ZXN0MzgzODIwODE1 | 18,213 | Fix instanceContainsElem bug | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18213/builds/13313) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit bceb8c841d749ed209c3fdd0a3f2be939a7278b2:\n\n|Sandbox| Source |\n|--|--|\n|[zealous-franklin-kyiky](https://codesandbox.io/s/zealous-franklin-kyiky)| Configuration |\n",
"I'll add a follow up test tomorrow when I'm in the office.",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against bceb8c841d749ed209c3fdd0a3f2be939a7278b2\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against bceb8c841d749ed209c3fdd0a3f2be939a7278b2\n</p>\n"
] | 2020-03-04 19:40:16 | 2020-03-04 19:53:20 | 2020-03-04 19:53:17 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18213', 'html_url': 'https://github.com/facebook/react/pull/18213', 'diff_url': 'https://github.com/facebook/react/pull/18213.diff', 'patch_url': 'https://github.com/facebook/react/pull/18213.patch', 'merged_at': datetime.datetime(2020, 3, 4, 19, 53, 17)} | This was an obvious bug on reflection, and most definitely a typo. The function is designed to find if an element is contained within another element in the fiber tree, except the original function mistakenly used `element` instead of `instance`, so we just early return everytime. | {'url': 'https://api.github.com/repos/facebook/react/issues/18213/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18213/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18212 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18212/labels{/name} | https://api.github.com/repos/facebook/react/issues/18212/comments | https://api.github.com/repos/facebook/react/issues/18212/events | https://github.com/facebook/react/pull/18212 | 575,686,736 | MDExOlB1bGxSZXF1ZXN0MzgzODAxNDI1 | 18,212 | react-devtools: move electron to optionalDependencies | {'login': 'threepointone', 'id': 18808, 'node_id': 'MDQ6VXNlcjE4ODA4', 'avatar_url': 'https://avatars.githubusercontent.com/u/18808?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/threepointone', 'html_url': 'https://github.com/threepointone', 'followers_url': 'https://api.github.com/users/threepointone/followers', 'following_url': 'https://api.github.com/users/threepointone/following{/other_user}', 'gists_url': 'https://api.github.com/users/threepointone/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/threepointone/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/threepointone/subscriptions', 'organizations_url': 'https://api.github.com/users/threepointone/orgs', 'repos_url': 'https://api.github.com/users/threepointone/repos', 'events_url': 'https://api.github.com/users/threepointone/events{/privacy}', 'received_events_url': 'https://api.github.com/users/threepointone/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18212/builds/13300) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit be20db2415b2238cb45ae3815449b08144e19a66:\n\n|Sandbox| Source |\n|--|--|\n|[floral-brook-cit2f](https://codesandbox.io/s/floral-brook-cit2f)| Configuration |\n",
"\n<!--\n 0 failure: \n 1 warning: Base commit is br...\n \n 1 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n<table>\n <thead>\n <tr>\n <th width=\"50\"></th>\n <th width=\"100%\" data-danger-table=\"true\">Warnings</th>\n </tr>\n </thead>\n <tbody><tr>\n <td>:warning:</td>\n <td>Base commit is broken: 7e94d89f3e78df89d9d133ca8dbef295f1b90e46</td>\n </tr>\n </tbody>\n</table>\n\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against be20db2415b2238cb45ae3815449b08144e19a66\n</p>\n",
"\n<!--\n 0 failure: \n 1 warning: Base commit is br...\n \n 1 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n<table>\n <thead>\n <tr>\n <th width=\"50\"></th>\n <th width=\"100%\" data-danger-table=\"true\">Warnings</th>\n </tr>\n </thead>\n <tbody><tr>\n <td>:warning:</td>\n <td>Base commit is broken: 7e94d89f3e78df89d9d133ca8dbef295f1b90e46</td>\n </tr>\n </tbody>\n</table>\n\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against be20db2415b2238cb45ae3815449b08144e19a66\n</p>\n",
"While this change would be nice for our CI, it seems like a negative for NPM users who actually use the standalone DevTools shell. Hm...",
"If the download fails for them, they’d be in the same situation as yarn failing. They’d see the same logs, and devtools wouldn’t start up (and you could detect a failed download in the bin and warn specifically for that)\n\nI’m not super sure myself tbh. ",
"This isn’t the right solution, so I’m closing it"
] | 2020-03-04 19:13:26 | 2020-03-04 21:53:46 | 2020-03-04 21:53:45 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18212', 'html_url': 'https://github.com/facebook/react/pull/18212', 'diff_url': 'https://github.com/facebook/react/pull/18212.diff', 'patch_url': 'https://github.com/facebook/react/pull/18212.patch', 'merged_at': None} | When we yarn/ci, we download electron only because it's listed in react-devtools as a dependency. We don't seem to use it for any tests or bundles though, so it's non-essential for the build. Further the electron download point is flaky, leading to ci failures like this https://circleci.com/gh/facebook/react/95743 This PR simply moves electron to optionalDependencies, so the build doesn't fail even if the download fails. | {'url': 'https://api.github.com/repos/facebook/react/issues/18212/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18212/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18211 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18211/labels{/name} | https://api.github.com/repos/facebook/react/issues/18211/comments | https://api.github.com/repos/facebook/react/issues/18211/events | https://github.com/facebook/react/issues/18211 | 575,549,702 | MDU6SXNzdWU1NzU1NDk3MDI= | 18,211 | Bug: SVG is not rendering after ant version 4 | {'login': 'adorearun', 'id': 16375751, 'node_id': 'MDQ6VXNlcjE2Mzc1NzUx', 'avatar_url': 'https://avatars.githubusercontent.com/u/16375751?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/adorearun', 'html_url': 'https://github.com/adorearun', 'followers_url': 'https://api.github.com/users/adorearun/followers', 'following_url': 'https://api.github.com/users/adorearun/following{/other_user}', 'gists_url': 'https://api.github.com/users/adorearun/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/adorearun/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/adorearun/subscriptions', 'organizations_url': 'https://api.github.com/users/adorearun/orgs', 'repos_url': 'https://api.github.com/users/adorearun/repos', 'events_url': 'https://api.github.com/users/adorearun/events{/privacy}', 'received_events_url': 'https://api.github.com/users/adorearun/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}
{'id': 620368407, 'node_id': 'MDU6TGFiZWw2MjAzNjg0MDc=', 'url': 'https://api.github.com/repos/facebook/react/labels/Resolution:%20Needs%20More%20Information', 'name': 'Resolution: Needs More Information', 'color': 'fffde7', 'default': False, 'description': None}] | closed | false | {'login': 'adorearun', 'id': 16375751.0, 'node_id': 'MDQ6VXNlcjE2Mzc1NzUx', 'avatar_url': 'https://avatars.githubusercontent.com/u/16375751?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/adorearun', 'html_url': 'https://github.com/adorearun', 'followers_url': 'https://api.github.com/users/adorearun/followers', 'following_url': 'https://api.github.com/users/adorearun/following{/other_user}', 'gists_url': 'https://api.github.com/users/adorearun/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/adorearun/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/adorearun/subscriptions', 'organizations_url': 'https://api.github.com/users/adorearun/orgs', 'repos_url': 'https://api.github.com/users/adorearun/repos', 'events_url': 'https://api.github.com/users/adorearun/events{/privacy}', 'received_events_url': 'https://api.github.com/users/adorearun/received_events', 'type': 'User', 'site_admin': False} | [{'login': 'adorearun', 'id': 16375751, 'node_id': 'MDQ6VXNlcjE2Mzc1NzUx', 'avatar_url': 'https://avatars.githubusercontent.com/u/16375751?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/adorearun', 'html_url': 'https://github.com/adorearun', 'followers_url': 'https://api.github.com/users/adorearun/followers', 'following_url': 'https://api.github.com/users/adorearun/following{/other_user}', 'gists_url': 'https://api.github.com/users/adorearun/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/adorearun/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/adorearun/subscriptions', 'organizations_url': 'https://api.github.com/users/adorearun/orgs', 'repos_url': 'https://api.github.com/users/adorearun/repos', 'events_url': 'https://api.github.com/users/adorearun/events{/privacy}', 'received_events_url': 'https://api.github.com/users/adorearun/received_events', 'type': 'User', 'site_admin': False}] | null | [
"@adorearun What makes you think this is a React bug?\r\n\r\nFrom the limited amount of info in the description, I would suggest filing it in the Ant repo.",
"Sorry about the confusion , closing it.",
"No worries :)"
] | 2020-03-04 16:20:00 | 2020-03-04 20:57:51 | 2020-03-04 17:53:47 | NONE | null | null | null | I am using ant in my application which has gmaps. I also render markers using custom svg in maps. I am testing latest ant version 4 in my application , as soon as I upgrade to latest version 4 all markers which are supposed to show in my gmaps is not visible. there were no console logs or issues in browser.
React version: ^16.10.1
React Dom version : ^16.10.1
ant version : ^4.0.1
## Steps To Reproduce
1. After upgrade to ant 4 , all my svg is not visible
2.
## The current behavior
If i use ant version ^3.23.5 , everything seems to be working fine. Only after upgrade to version 4 its not working
## The expected behavior
| {'url': 'https://api.github.com/repos/facebook/react/issues/18211/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18211/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18210 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18210/labels{/name} | https://api.github.com/repos/facebook/react/issues/18210/comments | https://api.github.com/repos/facebook/react/issues/18210/events | https://github.com/facebook/react/pull/18210 | 575,373,624 | MDExOlB1bGxSZXF1ZXN0MzgzNTMyOTgw | 18,210 | Modern Event System: Add support for internal FB Primer | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18210/builds/13367) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit bba107d8ebb7fe46f23126278b3e6e70933edca4:\n\n|Sandbox| Source |\n|--|--|\n|[crazy-fog-dg7np](https://codesandbox.io/s/crazy-fog-dg7np)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 355970aa4b7f96ec487e29083ee8fbc87bc99fdc...bba107d8ebb7fe46f23126278b3e6e70933edca4</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | +0.2% | +0.2% | 405.57 KB | 406.23 KB | 73.92 KB | 74.08 KB | FB_WWW_PROFILING\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 134.59 KB | 134.59 KB | 34.59 KB | 34.59 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **-0.5%** | **1.15 KB** | **1.15 KB** | **655 B** | **652 B** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.0%** | **19.99 KB** | **19.99 KB** | **7.39 KB** | **7.39 KB** | **UMD_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\nreact-dom.development.js | 0.0% | 0.0% | 883.42 KB | 883.53 KB | 194.62 KB | 194.65 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.1%** | **9.99 KB** | **9.99 KB** | **3.37 KB** | **3.36 KB** | **NODE_PROD**\n**react-dom.production.min.js** | **-0.0%** | **-0.0%** | **115.95 KB** | **115.95 KB** | **37.13 KB** | **37.13 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | -0.0% | -0.0% | 119.48 KB | 119.48 KB | 38.34 KB | 38.34 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | 0.0% | 840.7 KB | 840.81 KB | 192.23 KB | 192.27 KB | NODE_DEV\nreact-dom-server.node.development.js | 0.0% | -0.0% | 128.91 KB | 128.91 KB | 34.43 KB | 34.43 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **116.03 KB** | **116.03 KB** | **36.49 KB** | **36.49 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **-0.0%** | **20.31 KB** | **20.31 KB** | **7.51 KB** | **7.51 KB** | **NODE_PROD**\nreact-dom.profiling.min.js | 0.0% | -0.0% | 119.71 KB | 119.71 KB | 37.58 KB | 37.58 KB | NODE_PROFILING\nReactDOM-dev.js | +0.1% | +0.2% | 937.99 KB | 939.17 KB | 208.92 KB | 209.32 KB | FB_WWW_DEV\n**ReactDOM-prod.js** | **:small_red_triangle:+0.2%** | **:small_red_triangle:+0.2%** | **394.24 KB** | **394.89 KB** | **71.74 KB** | **71.9 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.node.development.js | 0.0% | -0.2% | 3.68 KB | 3.68 KB | 1.33 KB | 1.33 KB | NODE_DEV\nReactDOMTesting-dev.js | +0.1% | +0.2% | 897.62 KB | 898.79 KB | 200.44 KB | 200.84 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **:small_red_triangle:+0.2%** | **:small_red_triangle:+0.2%** | **381.49 KB** | **382.14 KB** | **69.48 KB** | **69.63 KB** | **FB_WWW_PROD**\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 127.69 KB | 127.69 KB | 34.17 KB | 34.17 KB | NODE_DEV\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 53.77 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\nReactDOMTesting-profiling.js | +0.2% | +0.2% | 381.49 KB | 382.14 KB | 69.48 KB | 69.63 KB | FB_WWW_PROFILING\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.0%** | **19.9 KB** | **19.9 KB** | **7.36 KB** | **7.36 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.2% | 3.34 KB | 3.34 KB | 1.26 KB | 1.26 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.94 KB** | **10.94 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.1%** | **1.17 KB** | **1.17 KB** | **691 B** | **690 B** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | -0.0% | 137.53 KB | 137.53 KB | 35.04 KB | 35.04 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 49.55 KB | 49.55 KB | 13.51 KB | 13.51 KB | NODE_DEV\n**ReactDOMServer-prod.js** | **0.0%** | **-0.0%** | **47.39 KB** | **47.39 KB** | **11.03 KB** | **11.03 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.2% | 2.94 KB | 2.94 KB | 1.17 KB | 1.17 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.3%** | **1013 B** | **1013 B** | **603 B** | **601 B** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.1%** | **10.26 KB** | **10.26 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: -0.0%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against bba107d8ebb7fe46f23126278b3e6e70933edca4\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against bba107d8ebb7fe46f23126278b3e6e70933edca4\n</p>\n"
] | 2020-03-04 12:47:29 | 2020-03-05 09:00:00 | 2020-03-04 23:42:00 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18210', 'html_url': 'https://github.com/facebook/react/pull/18210', 'diff_url': 'https://github.com/facebook/react/pull/18210.diff', 'patch_url': 'https://github.com/facebook/react/pull/18210.patch', 'merged_at': datetime.datetime(2020, 3, 4, 23, 42)} | This PR exposes a new flag to be used with the modern event system: `enableLegacyFBPrimerSupport`. This flag should be enabled in non-experimental internal bundles only.
When this flag is enabled, we attempt to detect internal FB Primer event heuristics, so we know to defer the internal React dispatching till after Primer has run. We do this using as one-time document event listener. | {'url': 'https://api.github.com/repos/facebook/react/issues/18210/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18210/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18209 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18209/labels{/name} | https://api.github.com/repos/facebook/react/issues/18209/comments | https://api.github.com/repos/facebook/react/issues/18209/events | https://github.com/facebook/react/issues/18209 | 575,337,279 | MDU6SXNzdWU1NzUzMzcyNzk= | 18,209 | Bug: | {'login': 'fantasticsoul', 'id': 7334950, 'node_id': 'MDQ6VXNlcjczMzQ5NTA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/7334950?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/fantasticsoul', 'html_url': 'https://github.com/fantasticsoul', 'followers_url': 'https://api.github.com/users/fantasticsoul/followers', 'following_url': 'https://api.github.com/users/fantasticsoul/following{/other_user}', 'gists_url': 'https://api.github.com/users/fantasticsoul/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/fantasticsoul/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/fantasticsoul/subscriptions', 'organizations_url': 'https://api.github.com/users/fantasticsoul/orgs', 'repos_url': 'https://api.github.com/users/fantasticsoul/repos', 'events_url': 'https://api.github.com/users/fantasticsoul/events{/privacy}', 'received_events_url': 'https://api.github.com/users/fantasticsoul/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"This is expected behaviour for Strict mode in development, it helps to surface any possible bugs https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects",
"so can react supply some api to let developer know is this render called by strict-mode, In a sense, it is like a shadow call, but I suggest react should let developer know if developer want to konw.\r\n\r\n> by the way, the useEffect is only been called by one time but useState will been called 2 times in strict mode.\r\n\r\n- for hook\r\n```js\r\nfunction Demo(){\r\n const result = React.useDetectStrictMode()\r\n console.log(`is this render behavior in strict mode `, result);\r\n}\r\n\r\n//if I new a `<Demo />` one time, I will see two line at console\r\n//1 : is this render behavior in strict mode false\r\n//2: is this render behavior in strict mode true\r\n```\r\nfor class\r\n```js\r\nclass Demo extends React.Component{\r\n constructor(props context){\r\n super(props, context);\r\n console.log(`is this render behavior in strict mode `, context.isCallByStrictMode);\r\n }\r\n}\r\n```\r\n\r\nbecause I want to collect and do some stuff in first render period, now in strict mode my code do something wrong......\r\n\r\njust like below\r\n```js\r\nfunction useMyHook(){\r\n const curCursor = getCursor();//aways return a new cursor\r\n const [lockedCursor] = useState(curCursor);\r\n if(curCursor === lockedCursor){\r\n // if true, mean that this hook is called by some component first time\r\n // then I will do something else for this first render period.\r\n // but now in strict mode, a component ins will call this hook fn 2 times even user \r\n // only write one time in the code.\r\n // so it will interfere with my judgment\r\n }\r\n}\r\n```\r\n",
"what I really want is that react can give a way to let developer know which one is the **second call** in `double-invoking`, it is very very helpful and important if developer care about it.",
"I disagree, and it's pointing out an actual problem with your code. You shouldn't instantiate a new object while rendering with getCursor(). The number of renders is not guaranteed, and could vary based on whether the component suspended, or other factors. \r\n\r\nIt's not clear from your snippet what exactly you're trying to do, but this isn't a bug with React. I'd recommend posting on stack overflow for usage questions. Thanks!",
"thank you for your advice, now I know how to handle it."
] | 2020-03-04 11:44:57 | 2020-03-04 14:25:06 | 2020-03-04 12:16:25 | NONE | null | null | null | React version: 16.12.0
## Steps To Reproduce
1. wrap root node with `<React.Strict>`
2. all the component will been initialized 2 times
Link to code example:
[online-demo](https://codesandbox.io/s/test-strict-mode-y14zb)
```js
import React from "react";
export function FnDemo(){
const [state, setter] = React.useState();
// if root node wrapped with React.StrictMode, below will print 2 times
console.log('print 2 times when in strict mode');
return (
<div>
FnDemo
</div>
);
}
export class ClassDemo extends React.Component{
constructor(props, context){
super(props, context);
console.log('constructor print 2 times when in strict mode');
}
render(){
return (
<div>
ClassDemo
</div>
);
}
}
```
## The current behavior
does react have to init component one more time in strict mode?
## The expected behavior
when use strict mode, all component will been initialized only one time. | {'url': 'https://api.github.com/repos/facebook/react/issues/18209/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18209/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18208 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18208/labels{/name} | https://api.github.com/repos/facebook/react/issues/18208/comments | https://api.github.com/repos/facebook/react/issues/18208/events | https://github.com/facebook/react/issues/18208 | 575,311,325 | MDU6SXNzdWU1NzUzMTEzMjU= | 18,208 | Bug: [eslint-plugin-react-hooks] recommended config rules did not work | {'login': 'bobaaaaa', 'id': 733158, 'node_id': 'MDQ6VXNlcjczMzE1OA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/733158?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bobaaaaa', 'html_url': 'https://github.com/bobaaaaa', 'followers_url': 'https://api.github.com/users/bobaaaaa/followers', 'following_url': 'https://api.github.com/users/bobaaaaa/following{/other_user}', 'gists_url': 'https://api.github.com/users/bobaaaaa/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bobaaaaa/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bobaaaaa/subscriptions', 'organizations_url': 'https://api.github.com/users/bobaaaaa/orgs', 'repos_url': 'https://api.github.com/users/bobaaaaa/repos', 'events_url': 'https://api.github.com/users/bobaaaaa/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bobaaaaa/received_events', 'type': 'User', 'site_admin': False} | [{'id': 40929151, 'node_id': 'MDU6TGFiZWw0MDkyOTE1MQ==', 'url': 'https://api.github.com/repos/facebook/react/labels/Type:%20Bug', 'name': 'Type: Bug', 'color': 'b60205', 'default': False, 'description': None}] | closed | true | null | [] | null | [
"The commit that landed that behaviour (https://github.com/facebook/react/pull/14762) hasn't been released yet. We could probably do a release sometime, but the workaround right now is to copy paste the recommended config. I'll leave this open till we do. ",
"I don't want to put anything in `rules`, here is my workaround.\r\n\r\n1. open `node_modules/eslint-plugin-react-hooks/index.js`, override all with the following code:\r\n\r\n```\r\n'use strict';\r\n\r\n// TODO: this doesn't make sense for an ESLint rule.\r\n// We need to fix our build process to not create bundles for \"raw\" packages like this.\r\nif (process.env.NODE_ENV === 'production') {\r\n module.exports = {...require('./cjs/eslint-plugin-react-hooks.production.min.js'),\r\n configs: {\r\n recommended: {\r\n rules: {\r\n \"react-hooks/rules-of-hooks\": \"error\",\r\n \"react-hooks/exhaustive-deps\": \"warn\"\r\n }\r\n }\r\n }};\r\n} else {\r\n module.exports = {...require('./cjs/eslint-plugin-react-hooks.development.js'),\r\n configs: {\r\n recommended: {\r\n rules: {\r\n \"react-hooks/rules-of-hooks\": \"error\",\r\n \"react-hooks/exhaustive-deps\": \"warn\"\r\n }\r\n }\r\n }};\r\n}\r\n```",
"This should've gone out in 3.0.0",
"Hey Guys, weirdly i'm still having this error right now\r\n\r\n```\r\nmodule.exports = {\r\n env: {\r\n browser: true,\r\n es6: true\r\n },\r\n extends: [\r\n \"plugin:react/recommended\",\r\n \"airbnb\",\r\n \"plugin:react-hooks/recommended\",\r\n \"prettier\"\r\n ],\r\n globals: {\r\n Atomics: \"readonly\",\r\n SharedArrayBuffer: \"readonly\"\r\n },\r\n parserOptions: {\r\n ecmaFeatures: {\r\n jsx: true\r\n },\r\n ecmaVersion: 2018,\r\n sourceType: \"module\"\r\n },\r\n plugins: [\"react\", \"jsx-a11y\", \"import\", \"prettier\"],\r\n rules: {\r\n \"prettier/prettier\": \"error\",\r\n \"react/jsx-filename-extension\": [1, { \"extensions\": [\".js\", \".jsx\"] }],\r\n \"react/require-default-props\": [0],\r\n }\r\n};\r\n```\r\n\r\nThat's my eslintrc, just installed the hooks plugin today\r\n\r\nversion: `\"eslint-plugin-react-hooks\": \"^4.0.1\",`\r\n\r\nAnything I should be aware of?'\r\n\r\nEDIT:\r\n\r\nSorry i just realised that airbnb is using react hooks 2.5",
"I'm still getting this error now with `^4.1.0`....\r\n\r\n```javascript\r\nmodule.exports = {\r\n \"env\": {\r\n \"browser\": true,\r\n \"es6\": true,\r\n },\r\n \"extends\": [\r\n \"eslint:recommended\",\r\n \"plugin:@typescript-eslint/eslint-recommended\",\r\n \"plugin:@typescript-eslint/recommended\",\r\n \"plugin:import/errors\",\r\n \"plugin:import/warnings\",\r\n \"plugin:react/recommended\",\r\n \"plugin:react-hooks/recommended\",\r\n ],\r\n \"parser\": \"@typescript-eslint/parser\",\r\n \"plugins\": [\r\n \"react\",\r\n ],\r\n \"rules\": {\r\n \"@typescript-eslint/member-delimiter-style\": [\r\n \"error\", {\r\n multiline: {\r\n delimiter: \"none\",\r\n requireLast: true,\r\n },\r\n singleline: {\r\n delimiter: \"semi\",\r\n requireLast: false,\r\n },\r\n },\r\n ],\r\n },\r\n \"settings\": {\r\n \"import/resolver\": {\r\n \"node\": {\r\n \"extensions\": [\".js\", \".jsx\", \".ts\", \".tsx\"],\r\n },\r\n },\r\n },\r\n}\r\n```\r\n\r\nEdit: works after complete purge of `node_modules` and `package-lock.json`; might have been a conflict with the `eslint-config-react-app@5.2.1` peer dep..."
] | 2020-03-04 10:59:24 | 2020-08-21 17:33:22 | 2020-05-01 16:04:13 | NONE | resolved | null | null | Since the latest plugin version (2.5.0) there should be a recommended config for `eslint-plugin-react-hooks`.
See: https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks
PR: #14762
Unfortunately this config did not work. I'am pretty sure the bundled `index.js` did not include the expected code.
eslint version: 6.8.0
eslint-plugin-react-hooks version: 2.5.0
## Steps To Reproduce
Link to code example:
https://github.com/bobaaaaa/eslint-plugin-react-hooks-err
## The current behavior
```
Oops! Something went wrong! :(
ESLint: 6.8.0.
ESLint couldn't find the config "plugin:react-hooks/recommended" to extend from. Please check that the name of the config is correct.
The config "plugin:react-hooks/recommended" was referenced from the config file in "${projectDir}/eslint-plugin-react-hooks-err/.eslintrc.json".
If you still have problems, please stop by https://gitter.im/eslint/eslint to chat with the team.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
```
## The expected behavior
```
yarn exit code 0
``` | {'url': 'https://api.github.com/repos/facebook/react/issues/18208/reactions', 'total_count': 5, '+1': 5, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18208/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18207 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18207/labels{/name} | https://api.github.com/repos/facebook/react/issues/18207/comments | https://api.github.com/repos/facebook/react/issues/18207/events | https://github.com/facebook/react/pull/18207 | 575,279,689 | MDExOlB1bGxSZXF1ZXN0MzgzNDU0MDY3 | 18,207 | Updated React Native Website URL | {'login': 'visshaljagtap', 'id': 35190080, 'node_id': 'MDQ6VXNlcjM1MTkwMDgw', 'avatar_url': 'https://avatars.githubusercontent.com/u/35190080?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/visshaljagtap', 'html_url': 'https://github.com/visshaljagtap', 'followers_url': 'https://api.github.com/users/visshaljagtap/followers', 'following_url': 'https://api.github.com/users/visshaljagtap/following{/other_user}', 'gists_url': 'https://api.github.com/users/visshaljagtap/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/visshaljagtap/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/visshaljagtap/subscriptions', 'organizations_url': 'https://api.github.com/users/visshaljagtap/orgs', 'repos_url': 'https://api.github.com/users/visshaljagtap/repos', 'events_url': 'https://api.github.com/users/visshaljagtap/events{/privacy}', 'received_events_url': 'https://api.github.com/users/visshaljagtap/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 3468faa212ab0e1d1eb69316b16c2e9c53c10e76\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 3468faa212ab0e1d1eb69316b16c2e9c53c10e76\n</p>\n",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18207/builds/13163) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 3468faa212ab0e1d1eb69316b16c2e9c53c10e76:\n\n|Sandbox| Source |\n|--|--|\n|[hungry-galileo-4hkrd](https://codesandbox.io/s/hungry-galileo-4hkrd)| Configuration |\n",
"Thank you!"
] | 2020-03-04 10:09:04 | 2020-03-04 12:10:49 | 2020-03-04 12:10:48 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18207', 'html_url': 'https://github.com/facebook/react/pull/18207', 'diff_url': 'https://github.com/facebook/react/pull/18207.diff', 'patch_url': 'https://github.com/facebook/react/pull/18207.patch', 'merged_at': datetime.datetime(2020, 3, 4, 12, 10, 48)} | <!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.
Before submitting a pull request, please make sure the following is done:
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
9. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
10. If you haven't already, complete the CLA.
Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->
## Summary
Updated the previous React Native website URL with latest one!
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. -->
| {'url': 'https://api.github.com/repos/facebook/react/issues/18207/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18207/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18206 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18206/labels{/name} | https://api.github.com/repos/facebook/react/issues/18206/comments | https://api.github.com/repos/facebook/react/issues/18206/events | https://github.com/facebook/react/issues/18206 | 575,086,878 | MDU6SXNzdWU1NzUwODY4Nzg= | 18,206 | Bug: UI was stuck when TextField focus changed | {'login': 'uldh', 'id': 7122457, 'node_id': 'MDQ6VXNlcjcxMjI0NTc=', 'avatar_url': 'https://avatars.githubusercontent.com/u/7122457?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/uldh', 'html_url': 'https://github.com/uldh', 'followers_url': 'https://api.github.com/users/uldh/followers', 'following_url': 'https://api.github.com/users/uldh/following{/other_user}', 'gists_url': 'https://api.github.com/users/uldh/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/uldh/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/uldh/subscriptions', 'organizations_url': 'https://api.github.com/users/uldh/orgs', 'repos_url': 'https://api.github.com/users/uldh/repos', 'events_url': 'https://api.github.com/users/uldh/events{/privacy}', 'received_events_url': 'https://api.github.com/users/uldh/received_events', 'type': 'User', 'site_admin': False} | [{'id': 1168115654, 'node_id': 'MDU6TGFiZWwxMTY4MTE1NjU0', 'url': 'https://api.github.com/repos/facebook/react/labels/Resolution:%20Support%20Redirect', 'name': 'Resolution: Support Redirect', 'color': '106099', 'default': False, 'description': ''}] | closed | false | null | [] | null | [
"no matter in native view or web or rn view, all stuck when textfield focus changed, for example when begin edit or end edit",
"If you believe this is a bug in React, please open an issue with the information requested in the issue template.\r\n\r\nIf you have a support question, please check our community support resources:\r\nhttps://facebook.github.io/react/community/support.html"
] | 2020-03-04 02:14:46 | 2020-04-13 20:15:17 | 2020-04-13 20:15:17 | NONE | null | null | null | ios simulator | {'url': 'https://api.github.com/repos/facebook/react/issues/18206/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18206/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18205 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18205/labels{/name} | https://api.github.com/repos/facebook/react/issues/18205/comments | https://api.github.com/repos/facebook/react/issues/18205/events | https://github.com/facebook/react/issues/18205 | 574,930,675 | MDU6SXNzdWU1NzQ5MzA2NzU= | 18,205 | Bug: backend.js Uncaught TypeError: Cannot read property 'sub' of undefined | {'login': 'steida', 'id': 66249, 'node_id': 'MDQ6VXNlcjY2MjQ5', 'avatar_url': 'https://avatars.githubusercontent.com/u/66249?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/steida', 'html_url': 'https://github.com/steida', 'followers_url': 'https://api.github.com/users/steida/followers', 'following_url': 'https://api.github.com/users/steida/following{/other_user}', 'gists_url': 'https://api.github.com/users/steida/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/steida/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/steida/subscriptions', 'organizations_url': 'https://api.github.com/users/steida/orgs', 'repos_url': 'https://api.github.com/users/steida/repos', 'events_url': 'https://api.github.com/users/steida/events{/privacy}', 'received_events_url': 'https://api.github.com/users/steida/received_events', 'type': 'User', 'site_admin': False} | [{'id': 710573595, 'node_id': 'MDU6TGFiZWw3MTA1NzM1OTU=', 'url': 'https://api.github.com/repos/facebook/react/labels/Component:%20Developer%20Tools', 'name': 'Component: Developer Tools', 'color': 'fbca04', 'default': False, 'description': None}] | closed | false | {'login': 'bvaughn', 'id': 29597.0, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False} | [{'login': 'bvaughn', 'id': 29597, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False}] | null | [
"DevTools only injects if the document `contentType` is `text/html` (see #17739). This change also required adding some checks for \"'sub' of undefined\" (see #17848).\r\n\r\nUnfortunately the first change was released in v4.4.0 (January 3, 2020) and the second change has not yet been released. So this is a known issue and will be fixed by v4.4.1/v4.5.0 whenever it's released...which should be soon. I guess probably this week.\r\n\r\nSorry for the inconvenience.",
"Fixed in v4.5\r\n\r\nhttps://github.com/facebook/react/blob/master/packages/react-devtools/CHANGELOG.md#450-march-3-2020\r\n"
] | 2020-03-03 20:44:52 | 2020-03-03 23:28:52 | 2020-03-03 23:28:52 | NONE | null | null | null | ```
backend.js:32 Uncaught TypeError: Cannot read property 'sub' of undefined
at g (backend.js:32)
at e (backend.js:8)
```
It happens when a server returns a string without HTML. I suppose React dev tools expect DOM.
![Screenshot 2020-03-03 at 21 43 42](https://user-images.githubusercontent.com/66249/75817818-18c1fd00-5d98-11ea-89f5-547e97c44632.png)
| {'url': 'https://api.github.com/repos/facebook/react/issues/18205/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18205/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18204 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18204/labels{/name} | https://api.github.com/repos/facebook/react/issues/18204/comments | https://api.github.com/repos/facebook/react/issues/18204/events | https://github.com/facebook/react/pull/18204 | 574,872,022 | MDExOlB1bGxSZXF1ZXN0MzgzMTE4MjQ5 | 18,204 | Fix flow types | {'login': 'bvaughn', 'id': 29597, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18204/builds/13011) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 757c6f84341156f1f060811e16e96950cf76c50d:\n\n|Sandbox| Source |\n|--|--|\n|[reverent-glade-5lkq5](https://codesandbox.io/s/reverent-glade-5lkq5)| Configuration |\n",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18204/builds/13015) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 48ed4cba53656f3e49d74d8375d6ee08f57e5b6a:\n\n|Sandbox| Source |\n|--|--|\n|[kind-moser-18v4v](https://codesandbox.io/s/kind-moser-18v4v)| Configuration |\n",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18204/builds/13021) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 0c34969c3359b7220084d36fcfc04feaf3d1557c:\n\n|Sandbox| Source |\n|--|--|\n|[loving-chaum-zvfru](https://codesandbox.io/s/loving-chaum-zvfru)| Configuration |\n",
"CI failure looks unrelated...\r\n![Screen Shot 2020-03-03 at 11 30 27 AM](https://user-images.githubusercontent.com/29597/75812061-67dd4300-5d42-11ea-8bf2-d63ae9a32400.png)\r\n",
"Don’t be certain that it’s unrelated, I saw this recently as a a sign that another task failed. Afk or I’d look for proof. ",
"The failure is a 401 being returned from the electron repo in its post-install task :smile: Seems unrelated.",
"Oh no lol",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 0c34969c3359b7220084d36fcfc04feaf3d1557c\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 0c34969c3359b7220084d36fcfc04feaf3d1557c\n</p>\n"
] | 2020-03-03 18:55:49 | 2020-03-03 20:46:28 | 2020-03-03 20:46:24 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18204', 'html_url': 'https://github.com/facebook/react/pull/18204', 'diff_url': 'https://github.com/facebook/react/pull/18204.diff', 'patch_url': 'https://github.com/facebook/react/pull/18204.patch', 'merged_at': datetime.datetime(2020, 3, 3, 20, 46, 24)} | While reviewing #17934, I spotted some Flow problems that should have been caught. After investigating, this turned out to be caused by a missing `@flow` pragma in the main `React.js` file which was causing a lot of React APIs to be `any` types for DevTools and the interactions package. | {'url': 'https://api.github.com/repos/facebook/react/issues/18204/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18204/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18203 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18203/labels{/name} | https://api.github.com/repos/facebook/react/issues/18203/comments | https://api.github.com/repos/facebook/react/issues/18203/events | https://github.com/facebook/react/pull/18203 | 574,851,787 | MDExOlB1bGxSZXF1ZXN0MzgzMTAxOTU2 | 18,203 | Use accumulateTwoPhaseDispatchesSingle directly | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18203/builds/13004) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 9921ddd8c6543fba245725e44b3aafe375e92029:\n\n|Sandbox| Source |\n|--|--|\n|[polished-pine-nld42](https://codesandbox.io/s/polished-pine-nld42)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 9921ddd8c6543fba245725e44b3aafe375e92029\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 9921ddd8c6543fba245725e44b3aafe375e92029\n</p>\n",
">i'm unaware of the specific consequences\r\n\r\nIf you're curious — each `accumulate*` function has a `accumulate*Single` version. The difference as I understand is that `accumulate*Single` accepts an event, but `accumulate*` accepts *either* event or an array. Since we're calling it with event alone in those cases, there was no need to call the other version."
] | 2020-03-03 18:16:46 | 2020-03-05 00:38:00 | 2020-03-05 00:04:28 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18203', 'html_url': 'https://github.com/facebook/react/pull/18203', 'diff_url': 'https://github.com/facebook/react/pull/18203.diff', 'patch_url': 'https://github.com/facebook/react/pull/18203.patch', 'merged_at': datetime.datetime(2020, 3, 5, 0, 4, 27)} | I noticed this when working on the modern event system, so thought I'd add the improvement separately.
We only accumulate two phase dispatches on a single event. So passing it to `accumulateTwoPhaseDispatches` is unecessary in a bunch of places and is just overhead and runtime indirection.
Furthermore, with the modern event system we may want to add an additonal argument to `accumulateTwoPhaseDispatchesSingle` during event plugin phase, so this makes that far simpler to do. | {'url': 'https://api.github.com/repos/facebook/react/issues/18203/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18203/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18202 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18202/labels{/name} | https://api.github.com/repos/facebook/react/issues/18202/comments | https://api.github.com/repos/facebook/react/issues/18202/events | https://github.com/facebook/react/pull/18202 | 574,799,835 | MDExOlB1bGxSZXF1ZXN0MzgzMDU5NzMw | 18,202 | Disallow unnecessary dependencies in empty useEffect hook | {'login': 'soonoo', 'id': 5436405, 'node_id': 'MDQ6VXNlcjU0MzY0MDU=', 'avatar_url': 'https://avatars.githubusercontent.com/u/5436405?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/soonoo', 'html_url': 'https://github.com/soonoo', 'followers_url': 'https://api.github.com/users/soonoo/followers', 'following_url': 'https://api.github.com/users/soonoo/following{/other_user}', 'gists_url': 'https://api.github.com/users/soonoo/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/soonoo/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/soonoo/subscriptions', 'organizations_url': 'https://api.github.com/users/soonoo/orgs', 'repos_url': 'https://api.github.com/users/soonoo/repos', 'events_url': 'https://api.github.com/users/soonoo/events{/privacy}', 'received_events_url': 'https://api.github.com/users/soonoo/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18202/builds/12990) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 0dc8bacbfe2db01c2ef165facef189824ab69f7a:\n\n|Sandbox| Source |\n|--|--|\n|[loving-mendel-e2igp](https://codesandbox.io/s/loving-mendel-e2igp)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 0dc8bacbfe2db01c2ef165facef189824ab69f7a\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 0dc8bacbfe2db01c2ef165facef189824ab69f7a\n</p>\n",
"If the Hook is completely empty, surely there's no difference between under-specifying deps or over-specifying them? It's unnecessary in either case. I'm not sure why it would make sense to complain about this case. I'm also not sure why somebody would write an empty Hook.",
"@gaearon You are right. There is no need for empty hook. Below are my opinions about writing hooks.\r\n\r\n1. Empty hook is needless but it can be written in that way anyway. Current test cases are also stating about that. \r\n\r\n2. `useMemo` disallows over-specifying dependeicies even when memoizing empty code block. I think it would be better if rules were applied consistently.\r\n```javascript\r\nconst [val, setVal] = useState('')\r\nconst func = useMemo(() => {\r\n}, [val])\r\n ^^^^^ not allowed \r\n```\r\n",
">useMemo disallows over-specifying dependeicies even when memoizing empty code block. I think it would be better if rules were applied consistently.\r\n\r\nThis isn't about it being empty. `useMemo` and `useCallback` disallows over-specifying dependencies in general — which is intentional, because you shouldn't have any reason to do that. Those Hooks bodies are supposed to be pure. Effects are different, because you *might* want to run an effect more often. It's not pure. So we allow over-specifying deps for effects."
] | 2020-03-03 16:45:42 | 2020-03-08 14:57:14 | 2020-03-08 14:57:14 | NONE | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18202', 'html_url': 'https://github.com/facebook/react/pull/18202', 'diff_url': 'https://github.com/facebook/react/pull/18202.diff', 'patch_url': 'https://github.com/facebook/react/pull/18202.patch', 'merged_at': None} | I admit that there are some valid use cases for over-specifying dependencies in `useEffect`.
Current eslint plugin for hooks however allows over-specifying dependencies even if nothing is done in `useEffect`.
https://github.com/facebook/react/blob/8e6a08ea4f3beb2127ec3d1595cf5f83df5816b6/packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js#L624-L632
I think over-specifying dependencies in `useEffect` should be considered as valid pattern only when at least something is done in that hook. | {'url': 'https://api.github.com/repos/facebook/react/issues/18202/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18202/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18201 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18201/labels{/name} | https://api.github.com/repos/facebook/react/issues/18201/comments | https://api.github.com/repos/facebook/react/issues/18201/events | https://github.com/facebook/react/pull/18201 | 574,755,857 | MDExOlB1bGxSZXF1ZXN0MzgzMDIzMTc1 | 18,201 | Modern Event System: Support nested portal/root boundaries | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18201/builds/12970) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 116d535be2c2c46dbeb586c22f58f07d783bb184:\n\n|Sandbox| Source |\n|--|--|\n|[practical-chandrasekhar-0fr3e](https://codesandbox.io/s/practical-chandrasekhar-0fr3e)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against fae3558dd1f52d78d7f729ba56100d18bb6eb10a\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against fae3558dd1f52d78d7f729ba56100d18bb6eb10a\n</p>\n",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18201/builds/13406) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit fae3558dd1f52d78d7f729ba56100d18bb6eb10a:\n\n|Sandbox| Source |\n|--|--|\n|[unruffled-archimedes-dmtp9](https://codesandbox.io/s/unruffled-archimedes-dmtp9)| Configuration |\n"
] | 2020-03-03 15:39:40 | 2020-03-05 09:00:22 | 2020-03-05 09:00:14 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18201', 'html_url': 'https://github.com/facebook/react/pull/18201', 'diff_url': 'https://github.com/facebook/react/pull/18201.diff', 'patch_url': 'https://github.com/facebook/react/pull/18201.patch', 'merged_at': datetime.datetime(2020, 3, 5, 9, 0, 14)} | This PR adds support for multiple nested portal/root boundaries to the modern event system fork. Specifically, where you embed another React root or portal into an existing React sub-tree. Event propagation and the filtering and finding of ancestors is an important role here, and similar to the legacy event system, requires special logic to find the right ancestors to play through the plugin event system.
I've added a bunch of tests and extensive comments around the parts that get added in this PR. Note: this PR should not affect any of the existing legacy event system. I've tested this internally and all tests relating to this behavior seems to work as expected, but given it's all behind a flag that is disabled, the risk should be minimal. Also, if you turn on the flag, all our internal Jest tests pass with this code.
Left to do:
- Add support for legacy internal FB Primer (along with flag) | {'url': 'https://api.github.com/repos/facebook/react/issues/18201/reactions', 'total_count': 1, '+1': 1, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18201/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18200 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18200/labels{/name} | https://api.github.com/repos/facebook/react/issues/18200/comments | https://api.github.com/repos/facebook/react/issues/18200/events | https://github.com/facebook/react/issues/18200 | 574,695,550 | MDU6SXNzdWU1NzQ2OTU1NTA= | 18,200 | Feature: extend propTypes functionality | {'login': 'adeelibr', 'id': 16651811, 'node_id': 'MDQ6VXNlcjE2NjUxODEx', 'avatar_url': 'https://avatars.githubusercontent.com/u/16651811?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/adeelibr', 'html_url': 'https://github.com/adeelibr', 'followers_url': 'https://api.github.com/users/adeelibr/followers', 'following_url': 'https://api.github.com/users/adeelibr/following{/other_user}', 'gists_url': 'https://api.github.com/users/adeelibr/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/adeelibr/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/adeelibr/subscriptions', 'organizations_url': 'https://api.github.com/users/adeelibr/orgs', 'repos_url': 'https://api.github.com/users/adeelibr/repos', 'events_url': 'https://api.github.com/users/adeelibr/events{/privacy}', 'received_events_url': 'https://api.github.com/users/adeelibr/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"If you think this is valid feature request. I would love to help on this issue, I would need help on guidance though :)",
"Hi, we don't plan to add more features to PropTypes. However, this probably does what you want:\r\n\r\n```js\r\nChild.propTypes = {\r\n a: PropTypes.string,\r\n b: PropTypes.string,\r\n ...Parent.propTypes\r\n};\r\n```"
] | 2020-03-03 14:11:07 | 2020-03-03 14:15:11 | 2020-03-03 14:15:11 | NONE | null | null | null | React version: Latest
## More of a feature request 😄
```
const Parent = ({ x, y }) => <p>{x}{y}</p>;
Parent.propTypes = {
x: PropTypes.string,
y: PropTypes.string,
};
const Child = ({ a, b, x, y }) => {
return (
<div>
<Parent x={x} y={y} />
<p>{a}</p>
<p>{b}</p>
</div>
);
};
Child.propTypes = {
a: PropTypes.string,
b: PropTypes.string,
...PropTypes.extend(Parent), // => Can this be possible?
};
```
Link to code example:
- shared the code snippet in the issue itself 😅
## The current behavior
The current behaviour doesn't let you extent propTypes functionality from one component to the other. I see this as a very common practise for e.g, in UI libraries where you build components on top of other components. For example a `BaseButton` & on top of it you will build `PrimaryButton`, 'SecondaryButton` where the 2 buttons extend on `BaseButton` functionalities.
The functionality itself works, but there is no one in `propTypes` to have a feature where it can inherit props from it's parent class.
For my use case, in my UI library I am trying to generate an API table from `propTypes` section of the component, but since I can not extend props from class I have to manually re-add each prop from parent component to child component for API generation.
## The expected behavior
The propTypes does not have a feature where you can extent props from a certain component.
| {'url': 'https://api.github.com/repos/facebook/react/issues/18200/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18200/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18199 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18199/labels{/name} | https://api.github.com/repos/facebook/react/issues/18199/comments | https://api.github.com/repos/facebook/react/issues/18199/events | https://github.com/facebook/react/issues/18199 | 574,364,672 | MDU6SXNzdWU1NzQzNjQ2NzI= | 18,199 | Bug: Certain uses of render props result in remounts on every render | {'login': 'Rinaldo', 'id': 34190720, 'node_id': 'MDQ6VXNlcjM0MTkwNzIw', 'avatar_url': 'https://avatars.githubusercontent.com/u/34190720?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/Rinaldo', 'html_url': 'https://github.com/Rinaldo', 'followers_url': 'https://api.github.com/users/Rinaldo/followers', 'following_url': 'https://api.github.com/users/Rinaldo/following{/other_user}', 'gists_url': 'https://api.github.com/users/Rinaldo/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/Rinaldo/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/Rinaldo/subscriptions', 'organizations_url': 'https://api.github.com/users/Rinaldo/orgs', 'repos_url': 'https://api.github.com/users/Rinaldo/repos', 'events_url': 'https://api.github.com/users/Rinaldo/events{/privacy}', 'received_events_url': 'https://api.github.com/users/Rinaldo/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"You were writing `const Component = props => <BaseComp state={state} setState={setState} {...props} />` in the first example and `createFrame` in the second. So in both examples, a new type of component is generated on every render. This a hint that React should unmount the old component and mount the new one instead of reusing the old one .",
"@jddxf So why does avoiding JSX seem to solve the problem?\r\nIn the first example, why does `{Component()}` work when `<Component />` doesn't?\r\nIn the second example, why does `createFrame()(props)` work?",
"The non-jsx equivalent of `<Component />` is `React.createElement(Component)` rather than `{Component()}`. Only things passed to `React.createElement` as the first parameter will be regarded as component types by React.",
"This should explain what's happening: https://reactjs.org/docs/reconciliation.html#elements-of-different-types\r\n\r\nIn general, *defining* components inside other components (or Hooks) is a mistake. Instead, usually you want to declare them outside.",
"Calling it as a function fixes constant re-mounting problem, but produces a lot of these instead:\r\n\r\n![image](https://user-images.githubusercontent.com/150075/200166624-94101289-4aea-46c4-9b5a-90bfd01edeee.png)\r\n"
] | 2020-03-03 01:58:26 | 2022-11-06 10:53:31 | 2020-03-03 17:15:13 | NONE | null | null | null | #### React version: 16.13
Both of the following code snippets produce an input component that loses focus on render:
[Sandbox](https://codesandbox.io/s/floral-cherry-xcnvf)
```js
// render prop is passed a component it can render
const Wizard = ({ components, render }) => {
const [state, setState] = React.useState({})
const BaseComp = components[0]
const Component = props => <BaseComp state={state} setState={setState} {...props} />
return render({ Component })
}
const ChildComponent = ({ state, setState }) => {
React.useEffect(() => console.log("mounting"), []) // for demonstration purposes only
const { foo = "" } = state
const handleChange = ({ target: { name, value } }) => {
setState(prevState => ({ ...prevState, [name]: value }))
}
return <input name="foo" value={foo} onChange={handleChange} />
}
const Frame = ({ Component }) => (
<div style={{ margin: 20 }}>
<Component /> // {Component()} works
</div>
)
const App = () => (
<Wizard
components={[ChildComponent]}
render={Frame}
/>
)
```
[Sandbox](https://codesandbox.io/s/crimson-https-pirgm)
```js
// render prop is passed already rendered children
const Wizard = ({ components, render }) => {
const [state, setState] = React.useState({})
const BaseComp = components[0]
const children = <BaseComp state={state} setState={setState} />
return render({ children })
}
const ChildComponent = ({ state, setState }) => {
React.useEffect(() => console.log("mounting"), []) // for demonstration purposes only
const { foo = "" } = state
const handleChange = ({ target: { name, value } }) => {
setState(prevState => ({ ...prevState, [name]: value }))
}
return <input name="foo" value={foo} onChange={handleChange} />
}
const createFrame = () => ({ children }) => (
<div style={{ margin: 20 }}>{children}</div>
)
const Frame = createFrame()
const App = () => (
<Wizard
components={[ChildComponent]}
render={props => {
const Comp = createFrame()
// const Comp = Frame // uncomment this line and comment out the one above and it works
return <Comp {...props} /> // return createFrame()(props) also works
}}
/>
)
```
#### Context
In an app I'm working on there is a wizard component that does state management for an array of pages. It takes a render prop which is passed the current page and other stuff like status and navigation functions so that the look of the wizard is separated from the state management. As the render props passed to different wizards have gotten more complex, we've had issues with inputs losing focus and even some app crashes.
#### Preliminary Investigation
In both of the above examples, `ChildComponent` is being remounted on every render of the wizard.
One thing I noticed in the 2nd example is that it can be fixed by swapping `Frame` and `createFrame()`. I find this concerning because I thought functional components were pure functions and when working with pure functions you can swap the left side of an assignment for the right side without affecting the result.
Edit:
It seems to be partially a syntax issue. Both examples can be made to work by avoiding JSX
| {'url': 'https://api.github.com/repos/facebook/react/issues/18199/reactions', 'total_count': 1, '+1': 1, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18199/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18198 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18198/labels{/name} | https://api.github.com/repos/facebook/react/issues/18198/comments | https://api.github.com/repos/facebook/react/issues/18198/events | https://github.com/facebook/react/issues/18198 | 574,213,936 | MDU6SXNzdWU1NzQyMTM5MzY= | 18,198 | Bug: Child component Ref current is null | {'login': 'dream811', 'id': 45660446, 'node_id': 'MDQ6VXNlcjQ1NjYwNDQ2', 'avatar_url': 'https://avatars.githubusercontent.com/u/45660446?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/dream811', 'html_url': 'https://github.com/dream811', 'followers_url': 'https://api.github.com/users/dream811/followers', 'following_url': 'https://api.github.com/users/dream811/following{/other_user}', 'gists_url': 'https://api.github.com/users/dream811/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/dream811/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/dream811/subscriptions', 'organizations_url': 'https://api.github.com/users/dream811/orgs', 'repos_url': 'https://api.github.com/users/dream811/repos', 'events_url': 'https://api.github.com/users/dream811/events{/privacy}', 'received_events_url': 'https://api.github.com/users/dream811/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"I dont think this is an issue per se. It's just a matter of how refs work. You can use a callback to achieve your intended outcome.\r\n\r\n[Here is an example from the docs](https://reactjs.org/docs/hooks-faq.html#how-can-i-measure-a-dom-node)\r\n\r\n```\r\nimport React, { useCallback, useRef } from \"react\";\r\nimport AUserList from \"./AUserList\";\r\nimport { connect } from \"react-redux\";\r\n\r\nconst AUsers = props => {\r\n // list = useCallback()\r\n const divTag = React.createRef();\r\n\r\n const [ref, setRef] = useHookWithRefCallback();\r\n\r\n const handleChangeDataList = () => {\r\n console.log(ref); //null\r\n console.log(divTag.current);\r\n ref.current.reloadAUserTable(); //it is error\r\n };\r\n\r\n return (\r\n <>\r\n <div\r\n onClick={handleChangeDataList}\r\n className=\"animated fadeIn\"\r\n ref={divTag}\r\n >\r\n TEST\r\n </div>\r\n <AUserList AUserData_arr={[{ test: 1 }]} ref={setRef} />\r\n </>\r\n );\r\n};\r\n\r\nconst mapDispatchToProps = dispatch => ({\r\n fetchInterests: () => () => {}\r\n});\r\n\r\nconst mapStateToProps = (state, ownProps) => ({\r\n interests: () => {}\r\n});\r\n\r\nexport default connect(\r\n mapStateToProps,\r\n mapDispatchToProps,\r\n null,\r\n { forwardRef: true }\r\n)(AUsers);\r\n```\r\n\r\n```\r\nfunction useHookWithRefCallback() {\r\n const ref = useRef(null);\r\n const setRef = useCallback(node => {\r\n if (ref.current) {\r\n // Make sure to cleanup any events/references added to the last instance\r\n }\r\n\r\n if (node) {\r\n // Check if a node is actually passed. Otherwise node would be null.\r\n // You can now do what you need to, addEventListeners, measure, etc.\r\n }\r\n\r\n // Save a reference to the node\r\n ref.current = node;\r\n }, []);\r\n\r\n return [ref, setRef];\r\n}\r\n```",
"Thanks for your reply!\r\nI hope to use this script on my project.\r\nhttps://stackoverflow.com/questions/37949981/call-child-method-from-parent\r\nbut I failed. If you can explain using class components after check this, it will be my great pleasure.\r\nThanks again.\r\n:)",
"Hi! We use the issue tracker for bug reports and feature requests.\r\n\r\nIf you have a question, please check our community support resources:\r\nhttps://facebook.github.io/react/community/support.html"
] | 2020-03-02 20:03:41 | 2020-03-03 15:20:49 | 2020-03-03 15:20:48 | NONE | null | null | null | <!--
I am going to use React.createRef() to call child component's method in parent component.
when I use this for normal tag, it works well.
but doesn't work for custom component.
-->
```
React version:
16.8.6
## Steps To Reproduce
import AUserList from '../AUserList';
class AUsers extends Component {
constructor(props) {
super(props);
this.list = React.createRef();
this.divTag = React.createRef();
}
handleChangeDataList = () => {
console.log(this.list.current);//null
console.log(this.divTag.current);//it works
this.list.current.reloadAUserTable();//it is error
}
render() {
return (
<>
<div className="animated fadeIn" ref={this.divTag}/>
<AUserList ref={ref => this.list=ref}/>
<Button onClick={() => this.handleChangeDataList()}>atest</Button>
</>
)
}
}
export default connect(mapStateToProps, mapDispatchToProps, null, {forwardRef : true})(AUsers);
class AUserList extends Component {
//from AUsers
reloadAUserTable = () => {
console.log('good');
}
render() {
const {
AUserData_arr,
} = this.props;
return (
<div>
<Card>
<CardBody>
{AUserData_arr &&
<BootstrapTable data={AUserData_arr} version="4" striped hover pagination search tabIndexCell >
<TableHeaderColumn dataField="UserLevel_Name" dataFormat={this.userLevelFormatter} dataSort>LEVEL</TableHeaderColumn>
</BootstrapTable>
}
</CardBody>
</Card>
</div>
);
}
```
![image](https://user-images.githubusercontent.com/45660446/75713270-7c9ae600-5d04-11ea-89f8-6cf33e5e5302.png)
If I use connect(), ref doesn't works? | {'url': 'https://api.github.com/repos/facebook/react/issues/18198/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18198/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18197 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18197/labels{/name} | https://api.github.com/repos/facebook/react/issues/18197/comments | https://api.github.com/repos/facebook/react/issues/18197/events | https://github.com/facebook/react/issues/18197 | 574,131,005 | MDU6SXNzdWU1NzQxMzEwMDU= | 18,197 | Bug: Switching type of button causes it to submit the parent form | {'login': 'batzz-00', 'id': 24255122, 'node_id': 'MDQ6VXNlcjI0MjU1MTIy', 'avatar_url': 'https://avatars.githubusercontent.com/u/24255122?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/batzz-00', 'html_url': 'https://github.com/batzz-00', 'followers_url': 'https://api.github.com/users/batzz-00/followers', 'following_url': 'https://api.github.com/users/batzz-00/following{/other_user}', 'gists_url': 'https://api.github.com/users/batzz-00/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/batzz-00/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/batzz-00/subscriptions', 'organizations_url': 'https://api.github.com/users/batzz-00/orgs', 'repos_url': 'https://api.github.com/users/batzz-00/repos', 'events_url': 'https://api.github.com/users/batzz-00/events{/privacy}', 'received_events_url': 'https://api.github.com/users/batzz-00/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"I think it's how browser works.\r\nhttps://codesandbox.io/s/gracious-morning-1ikef",
"Yeah it seems so, my bad. Thought it was something to do with Reacts SyntheticEvent wrapper but I guess not! For anyone that gets this issue the easiest (though ugly) way to do this seems to be to simply wrap a settimeout to the switching of the button type after the button is clicked (setstate in my case). If there are any other/cleaner approaches please feel free to reopen?"
] | 2020-03-02 17:30:56 | 2020-03-03 09:12:20 | 2020-03-03 09:11:15 | NONE | null | null | null | Just react on its own, no extra packages. I'm not sure if this is intended behaviour, or if there are any related issues. If it is intended what is the suggested approach to stop it from happening?
React version: 16.12
## Steps To Reproduce
1. Create a simple component with one element in the state type that defaults to "button"
2. Create a <button type={type} /> within a <form>
3. On click set the state of the type to anything other than "button"
4. If you catch the onSubmit of the form you should notice that the form submits on click of the button even though when clicked the type was "button", which should not submit the form
Link to code example: https://codesandbox.io/s/jovial-cloud-5ooku
## The current behavior
The button type switches and automatically submits the form without a second click
## The expected behavior
The button type switches and the form is not yet submitted until the second click. | {'url': 'https://api.github.com/repos/facebook/react/issues/18197/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18197/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18196 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18196/labels{/name} | https://api.github.com/repos/facebook/react/issues/18196/comments | https://api.github.com/repos/facebook/react/issues/18196/events | https://github.com/facebook/react/pull/18196 | 574,087,955 | MDExOlB1bGxSZXF1ZXN0MzgyNDc3NzE1 | 18,196 | Testing builds | {'login': 'threepointone', 'id': 18808, 'node_id': 'MDQ6VXNlcjE4ODA4', 'avatar_url': 'https://avatars.githubusercontent.com/u/18808?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/threepointone', 'html_url': 'https://github.com/threepointone', 'followers_url': 'https://api.github.com/users/threepointone/followers', 'following_url': 'https://api.github.com/users/threepointone/following{/other_user}', 'gists_url': 'https://api.github.com/users/threepointone/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/threepointone/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/threepointone/subscriptions', 'organizations_url': 'https://api.github.com/users/threepointone/orgs', 'repos_url': 'https://api.github.com/users/threepointone/repos', 'events_url': 'https://api.github.com/users/threepointone/events{/privacy}', 'received_events_url': 'https://api.github.com/users/threepointone/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18196/builds/13177) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 34baecb50a571a8da362a9ae81c7049826b61cc0:\n\n|Sandbox| Source |\n|--|--|\n|[tender-dirac-mkt4x](https://codesandbox.io/s/tender-dirac-mkt4x)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 7e83af17cea784aee93ba555317d871e7c989dca...34baecb50a571a8da362a9ae81c7049826b61cc0</p>\n\n\n \n## react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact.development.js | 0.0% | 0.0% | 99.51 KB | 99.54 KB | 24.48 KB | 24.49 KB | UMD_DEV\nReactTesting-dev.js | n/a | n/a | 0 B | 74.46 KB | 0 B | 18.91 KB | FB_WWW_DEV\n**ReactTesting-prod.js** | **n/a** | **n/a** | **0 B** | **17.71 KB** | **0 B** | **4.57 KB** | **FB_WWW_PROD**\nreact-unstable-testing.development.js | n/a | n/a | 0 B | 99.56 KB | 0 B | 24.5 KB | UMD_DEV\nReactTesting-profiling.js | n/a | n/a | 0 B | 17.71 KB | 0 B | 4.57 KB | FB_WWW_PROFILING\n**react-unstable-testing.production.min.js** | **n/a** | **n/a** | **0 B** | **11.62 KB** | **0 B** | **4.57 KB** | **UMD_PROD**\nreact-unstable-testing.profiling.min.js | n/a | n/a | 0 B | 15.16 KB | 0 B | 5.69 KB | UMD_PROFILING\nreact-unstable-testing.development.js | n/a | n/a | 0 B | 61.43 KB | 0 B | 16.77 KB | NODE_DEV\n**react-unstable-testing.production.min.js** | **n/a** | **n/a** | **0 B** | **6.55 KB** | **0 B** | **2.67 KB** | **NODE_PROD**\nreact.development.js | 0.0% | 0.0% | 61.38 KB | 61.41 KB | 16.75 KB | 16.76 KB | NODE_DEV\n**react.production.min.js** | **-0.5%** | **-0.8%** | **6.54 KB** | **6.5 KB** | **2.66 KB** | **2.64 KB** | **NODE_PROD**\nReact-dev.js | 0.0% | 0.0% | 74.44 KB | 74.46 KB | 18.91 KB | 18.91 KB | FB_WWW_DEV\n**React-prod.js** | **-0.2%** | **-0.6%** | **17.71 KB** | **17.67 KB** | **4.57 KB** | **4.54 KB** | **FB_WWW_PROD**\nReact-profiling.js | -0.2% | -0.6% | 17.71 KB | 17.67 KB | 4.57 KB | 4.54 KB | FB_WWW_PROFILING\n\n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**react-dom.production.min.js** | **-0.0%** | **-0.0%** | **115.9 KB** | **115.9 KB** | **36.44 KB** | **36.43 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.1% | 3.34 KB | 3.34 KB | 1.26 KB | 1.26 KB | UMD_DEV\nreact-dom.profiling.min.js | -0.0% | -0.0% | 119.58 KB | 119.58 KB | 37.5 KB | 37.49 KB | NODE_PROFILING\nreact-dom-unstable-testing.profiling.min.js | n/a | n/a | 0 B | 120.44 KB | 0 B | 38.78 KB | UMD_PROFILING\nreact-dom-unstable-testing.development.js | n/a | n/a | 0 B | 845.36 KB | 0 B | 193.62 KB | NODE_DEV\n**react-dom-unstable-testing.production.min.js** | **n/a** | **n/a** | **0 B** | **117.03 KB** | **0 B** | **36.92 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **-0.0%** | **20.31 KB** | **20.31 KB** | **7.51 KB** | **7.51 KB** | **NODE_PROD**\nreact-dom-unstable-testing.profiling.min.js | n/a | n/a | 0 B | 120.72 KB | 0 B | 37.99 KB | NODE_PROFILING\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.94 KB** | **10.94 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 49.55 KB | 49.55 KB | 13.51 KB | 13.51 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.68 KB | 3.68 KB | 1.33 KB | 1.33 KB | NODE_DEV\nreact-dom.development.js | 0.0% | 0.0% | 882.49 KB | 882.56 KB | 194.45 KB | 194.47 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 134.59 KB | 134.59 KB | 34.59 KB | 34.59 KB | UMD_DEV\n**react-dom.production.min.js** | **-0.0%** | **0.0%** | **115.83 KB** | **115.82 KB** | **37.06 KB** | **37.06 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | -0.0% | -0.0% | 119.35 KB | 119.35 KB | 38.28 KB | 38.28 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | 0.0% | 839.83 KB | 839.9 KB | 192.08 KB | 192.11 KB | NODE_DEV\nReactDOM-dev.js | 0.0% | 0.0% | 937.2 KB | 937.27 KB | 208.79 KB | 208.82 KB | FB_WWW_DEV\n**ReactDOM-prod.js** | **-0.0%** | **-0.0%** | **394.76 KB** | **394.75 KB** | **71.74 KB** | **71.74 KB** | **FB_WWW_PROD**\n**ReactDOMServer-prod.js** | **0.0%** | **0.0%** | **47.39 KB** | **47.39 KB** | **11.03 KB** | **11.03 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | -0.0% | -0.0% | 406.05 KB | 406.04 KB | 73.9 KB | 73.89 KB | FB_WWW_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.2%** | **1013 B** | **1013 B** | **602 B** | **601 B** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **10.26 KB** | **10.26 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | +5.2% | +5.0% | 896.55 KB | 943.15 KB | 200.3 KB | 210.36 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **:small_red_triangle:+4.2%** | **:small_red_triangle:+4.4%** | **381.82 KB** | **397.88 KB** | **69.46 KB** | **72.49 KB** | **FB_WWW_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\nreact-dom-unstable-testing.development.js | n/a | n/a | 0 B | 888.3 KB | 0 B | 195.98 KB | UMD_DEV\nReactDOMTesting-profiling.js | +7.2% | +7.4% | 381.82 KB | 409.17 KB | 69.46 KB | 74.64 KB | FB_WWW_PROFILING\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **9.99 KB** | **9.99 KB** | **3.37 KB** | **3.36 KB** | **NODE_PROD**\n**react-dom-unstable-testing.production.min.js** | **n/a** | **n/a** | **0 B** | **116.91 KB** | **0 B** | **37.57 KB** | **UMD_PROD**\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 34baecb50a571a8da362a9ae81c7049826b61cc0\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 4 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 7e83af17cea784aee93ba555317d871e7c989dca...34baecb50a571a8da362a9ae81c7049826b61cc0</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom-unstable-testing.development.js | n/a | n/a | 0 B | 916.98 KB | 0 B | 200.9 KB | UMD_DEV\n**react-dom-unstable-testing.production.min.js** | **n/a** | **n/a** | **0 B** | **120.81 KB** | **0 B** | **38.71 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | +3.5% | +3.4% | 870.96 KB | 901.71 KB | 195.14 KB | 201.82 KB | FB_WWW_DEV\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.0%** | **20.44 KB** | **20.44 KB** | **7.49 KB** | **7.49 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | -0.0% | -0.0% | 123.67 KB | 123.66 KB | 38.56 KB | 38.56 KB | NODE_PROFILING\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 53.78 KB | 53.78 KB | 14.01 KB | 14.01 KB | UMD_DEV\nReactDOM-dev.js | 0.0% | 0.0% | 895.75 KB | 895.82 KB | 200.25 KB | 200.27 KB | FB_WWW_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.96 KB** | **10.96 KB** | **4.17 KB** | **4.17 KB** | **UMD_PROD**\n**ReactDOM-prod.js** | **-0.0%** | **-0.0%** | **370.91 KB** | **370.9 KB** | **67.53 KB** | **67.53 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | -0.0% | -0.0% | 382.12 KB | 382.11 KB | 69.66 KB | 69.65 KB | FB_WWW_PROFILING\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 49.56 KB | 49.56 KB | 13.52 KB | 13.52 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.2%** | **1 KB** | **1 KB** | **610 B** | **609 B** | **NODE_PROD**\nreact-dom-server.node.development.js | 0.0% | -0.0% | 130.42 KB | 130.42 KB | 34.65 KB | 34.65 KB | NODE_DEV\nreact-dom-unstable-testing.profiling.min.js | n/a | n/a | 0 B | 124.45 KB | 0 B | 39.89 KB | UMD_PROFILING\n**ReactDOMTesting-prod.js** | **:small_red_triangle:+1.4%** | **:small_red_triangle:+1.3%** | **368.93 KB** | **374.03 KB** | **67.44 KB** | **68.31 KB** | **FB_WWW_PROD**\nreact-dom-unstable-testing.development.js | n/a | n/a | 0 B | 872.86 KB | 0 B | 198.49 KB | NODE_DEV\nReactDOMTesting-profiling.js | +4.4% | +4.4% | 368.93 KB | 385.24 KB | 67.44 KB | 70.39 KB | FB_WWW_PROFILING\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 129.21 KB | 129.21 KB | 34.39 KB | 34.39 KB | NODE_DEV\n**react-dom-unstable-testing.production.min.js** | **n/a** | **n/a** | **0 B** | **121 KB** | **0 B** | **37.94 KB** | **NODE_PROD**\nreact-dom.development.js | 0.0% | 0.0% | 911.17 KB | 911.25 KB | 199.37 KB | 199.4 KB | UMD_DEV\nreact-dom-unstable-testing.profiling.min.js | n/a | n/a | 0 B | 124.8 KB | 0 B | 39.05 KB | NODE_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 58.91 KB | 58.91 KB | 14.7 KB | 14.7 KB | UMD_DEV\n**react-dom.production.min.js** | **-0.0%** | **-0.0%** | **119.72 KB** | **119.72 KB** | **38.22 KB** | **38.22 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | -0.0% | -0.0% | 123.37 KB | 123.36 KB | 39.4 KB | 39.4 KB | UMD_PROFILING\n**ReactDOMServer-prod.js** | **0.0%** | **-0.0%** | **46.68 KB** | **46.68 KB** | **10.84 KB** | **10.84 KB** | **FB_WWW_PROD**\nreact-dom.development.js | 0.0% | 0.0% | 867.33 KB | 867.4 KB | 196.96 KB | 196.99 KB | NODE_DEV\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 55.87 KB | 55.87 KB | 14.47 KB | 14.46 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.69 KB | 3.69 KB | 1.34 KB | 1.34 KB | NODE_DEV\n**react-dom.production.min.js** | **-0.0%** | **-0.0%** | **119.87 KB** | **119.87 KB** | **37.45 KB** | **37.44 KB** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **10 KB** | **10 KB** | **3.37 KB** | **3.37 KB** | **NODE_PROD**\n\n## react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact.development.js | 0.0% | 0.0% | 107.4 KB | 107.43 KB | 25.69 KB | 25.69 KB | UMD_DEV\n**react.production.min.js** | **0.0%** | **-0.0%** | **12.46 KB** | **12.46 KB** | **4.8 KB** | **4.8 KB** | **UMD_PROD**\nreact-unstable-testing.development.js | n/a | n/a | 0 B | 107.45 KB | 0 B | 25.7 KB | UMD_DEV\n**react-unstable-testing.production.min.js** | **n/a** | **n/a** | **0 B** | **12.47 KB** | **0 B** | **4.81 KB** | **UMD_PROD**\nReactTesting-dev.js | n/a | n/a | 0 B | 73.79 KB | 0 B | 18.73 KB | FB_WWW_DEV\nreact-unstable-testing.profiling.min.js | n/a | n/a | 0 B | 16.01 KB | 0 B | 5.9 KB | UMD_PROFILING\n**ReactTesting-prod.js** | **n/a** | **n/a** | **0 B** | **17.65 KB** | **0 B** | **4.56 KB** | **FB_WWW_PROD**\nreact-unstable-testing.development.js | n/a | n/a | 0 B | 68.95 KB | 0 B | 17.97 KB | NODE_DEV\nReactTesting-profiling.js | n/a | n/a | 0 B | 17.65 KB | 0 B | 4.56 KB | FB_WWW_PROFILING\n**react-unstable-testing.production.min.js** | **n/a** | **n/a** | **0 B** | **7.53 KB** | **0 B** | **2.92 KB** | **NODE_PROD**\nreact.development.js | 0.0% | 0.0% | 68.91 KB | 68.94 KB | 17.96 KB | 17.96 KB | NODE_DEV\n**react.production.min.js** | **-0.4%** | **-0.5%** | **7.51 KB** | **7.48 KB** | **2.91 KB** | **2.89 KB** | **NODE_PROD**\nReact-dev.js | 0.0% | 0.0% | 73.76 KB | 73.79 KB | 18.73 KB | 18.73 KB | FB_WWW_DEV\n**React-prod.js** | **-0.2%** | **-0.6%** | **17.65 KB** | **17.61 KB** | **4.56 KB** | **4.53 KB** | **FB_WWW_PROD**\nReact-profiling.js | -0.2% | -0.6% | 17.65 KB | 17.61 KB | 4.56 KB | 4.53 KB | FB_WWW_PROFILING\n\n </details>\n \n\nReactDOM: size: n/a, gzip: n/a\n\nReact: size: 0.0%, gzip: -0.0%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 34baecb50a571a8da362a9ae81c7049826b61cc0\n</p>\n",
"I don’t understand, how would this setup disable warnings? You’d see CI to break badly if that was the case. \n\nThe act one I modified makes it so the fallback behaviour is the same in prod (but only in testing builds). ",
"Has this been abandoned? I was a bit confused why I didn't get missing act warnings until I found out that these are only enabled for `jest`. Naively I wanted to propose to check `NODE_ENV`: \r\n```diff\r\n-if ('undefined' !== typeof jest) {\r\n+if (process.env.NODE_ENV === 'test') {\r\n```\r\nwhich is set by `jest` as well (by default) but this [is somewhat controversial](https://github.com/facebook/jest/issues/3370).\r\n\r\nIf you still intend to ship extra testing builds (which I prefer over mocking scheduler) I'd like to help. Seems like this PR \"only\" needs to be updated with `master`?"
] | 2020-03-02 16:22:01 | 2022-10-20 20:41:13 | 2022-10-20 20:41:13 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18196', 'html_url': 'https://github.com/facebook/react/pull/18196', 'diff_url': 'https://github.com/facebook/react/pull/18196.diff', 'patch_url': 'https://github.com/facebook/react/pull/18196.patch', 'merged_at': None} | We removed this in https://github.com/facebook/react/pull/18138 to unblock 16.13. This PR brings them back, with some changes -
- testing builds are prefixed with `unstable-`, i.e - `react-dom/unstable-testing`
- added back to `bundles.js`
- introduces the `__TESTING__` global. Not used to generate the actual builds, but is used for test specific logic
- removes the `.testing` forks of `ReactFeatureFlags`
- flushes suspense fallbacks in prod for testing builds
- changes tests in TestUtilsAct to reflect this
- adds a testing build for `react` as well
- and finally removes the testing sigils from prod builds. nice.
- misc test config changes | {'url': 'https://api.github.com/repos/facebook/react/issues/18196/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18196/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18195 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18195/labels{/name} | https://api.github.com/repos/facebook/react/issues/18195/comments | https://api.github.com/repos/facebook/react/issues/18195/events | https://github.com/facebook/react/pull/18195 | 573,986,791 | MDExOlB1bGxSZXF1ZXN0MzgyMzk0Mzk2 | 18,195 | Modern Event System: add plugin handling and forked paths | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18195/builds/12967) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 4cd1e1103b0c4800e037dbd8fd3be46c019b490c:\n\n|Sandbox| Source |\n|--|--|\n|[determined-snowflake-i690y](https://codesandbox.io/s/determined-snowflake-i690y)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 4cd1e1103b0c4800e037dbd8fd3be46c019b490c\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 4cd1e1103b0c4800e037dbd8fd3be46c019b490c\n</p>\n"
] | 2020-03-02 13:48:34 | 2020-03-03 14:37:10 | 2020-03-03 14:37:07 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18195', 'html_url': 'https://github.com/facebook/react/pull/18195', 'diff_url': 'https://github.com/facebook/react/pull/18195.diff', 'patch_url': 'https://github.com/facebook/react/pull/18195.patch', 'merged_at': datetime.datetime(2020, 3, 3, 14, 37, 7)} | This PR adds more of the modern event system logic, enough that based single root/non-portal logic now works and removing the flag should result in most tests passing. Note: this PR does not affect the existing legacy event system, and the only real changes are to the new modern event system (which is behind a flag anyway). This PR consists of:
- `DOMModernPluginEventSystem.js` adds event plugin handling, which is basically the exact same code from the legacy event system (except refactored to use basic for loops)
- `DOMModernPluginEventSystem-test.internal.js` that showes basic capture/bubble events working correctly with the new system (on a single root/non-portal example)
- `ReactBrowserEventEmitter-test.internal.js` uses the correct existing depending on the modern event system flag
- `ReactDOMEventListener-test.js ` disables or alters the expected outcome when using the new system
- `ReactTreeTraversal-test.js` disables or alters the expected outcome when using the new system
- `EnterLeaveEventPlugin.js` alters the logic to account for the new event system having roots rather than a single document listener, plus disables the first ancestor logic for the modern event system. | {'url': 'https://api.github.com/repos/facebook/react/issues/18195/reactions', 'total_count': 2, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 2, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18195/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18194 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18194/labels{/name} | https://api.github.com/repos/facebook/react/issues/18194/comments | https://api.github.com/repos/facebook/react/issues/18194/events | https://github.com/facebook/react/pull/18194 | 573,926,739 | MDExOlB1bGxSZXF1ZXN0MzgyMzQ0NDAy | 18,194 | Refine PressLegacy blur logic to account for IE11 issue. | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18194/builds/12792) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 8e5abebf038463425612cf99ad1309775412c1e6:\n\n|Sandbox| Source |\n|--|--|\n|[broken-platform-8ij9w](https://codesandbox.io/s/broken-platform-8ij9w)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 8e5abebf038463425612cf99ad1309775412c1e6\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 8e5abebf038463425612cf99ad1309775412c1e6\n</p>\n",
"@necolas I'm going to land this one now as it fixes a high-pri internal issue. If you have any feedback or concerns, I'd be happy to follow up ASAP.",
"tyyyyy!!!"
] | 2020-03-02 12:00:12 | 2020-03-02 13:42:53 | 2020-03-02 13:42:47 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18194', 'html_url': 'https://github.com/facebook/react/pull/18194', 'diff_url': 'https://github.com/facebook/react/pull/18194.diff', 'patch_url': 'https://github.com/facebook/react/pull/18194.patch', 'merged_at': datetime.datetime(2020, 3, 2, 13, 42, 47)} | This PR fixes an issues that was created in https://github.com/facebook/react/pull/18125. Notbaly, the issue was that IE11 fires `blur` events with a `null` `relatedTarget` when you click a focusable node.
Really, we never really needed the `relatedTarget`. Instead we can use the other part of the logic that checks if the actively pressed target is blurred instead. Given that all our Pressable nodes internally are always focusable, this should provide consistent characteristics across all browsers.
I've also ported the changes/fix to the `Tap` and `Press` event modules. | {'url': 'https://api.github.com/repos/facebook/react/issues/18194/reactions', 'total_count': 1, '+1': 1, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18194/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18193 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18193/labels{/name} | https://api.github.com/repos/facebook/react/issues/18193/comments | https://api.github.com/repos/facebook/react/issues/18193/events | https://github.com/facebook/react/issues/18193 | 573,813,946 | MDU6SXNzdWU1NzM4MTM5NDY= | 18,193 | Bug: ServiceWorker MIME Type Error ('text/html') on register | {'login': 'SeanMoody', 'id': 44378095, 'node_id': 'MDQ6VXNlcjQ0Mzc4MDk1', 'avatar_url': 'https://avatars.githubusercontent.com/u/44378095?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/SeanMoody', 'html_url': 'https://github.com/SeanMoody', 'followers_url': 'https://api.github.com/users/SeanMoody/followers', 'following_url': 'https://api.github.com/users/SeanMoody/following{/other_user}', 'gists_url': 'https://api.github.com/users/SeanMoody/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/SeanMoody/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/SeanMoody/subscriptions', 'organizations_url': 'https://api.github.com/users/SeanMoody/orgs', 'repos_url': 'https://api.github.com/users/SeanMoody/repos', 'events_url': 'https://api.github.com/users/SeanMoody/events{/privacy}', 'received_events_url': 'https://api.github.com/users/SeanMoody/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"Please file this issue at https://github.com/facebook/create-react-app/issues"
] | 2020-03-02 08:53:51 | 2020-03-02 09:19:31 | 2020-03-02 09:19:31 | NONE | null | null | null | Service worker is giving the following error when attempting to register:
Error during service worker registration: DOMException: Failed to register a ServiceWorker for scope ('http://localhost:3000/') with script ('http://localhost:3000/sw.js'): The script has an unsupported MIME type ('text/html').
console.<computed> @ index.js:1
sw.js is showing in the sources tab of the Chrome dev tools, but not registering..
React version: 16.12.0
Error Message:
<img width="955" alt="Screen Shot 2020-03-02 at 4 42 54 AM" src="https://user-images.githubusercontent.com/44378095/75659450-6297cf80-5c40-11ea-9760-7b47e97c6d5f.png">
## Steps To Reproduce
1. Register a Service Worker in React (change from unregister to register, or place SW code directly in index.html, or use a simpler SW. All cause the same error when running, in either dev or a build react app.)
SW Example:
```
export function register() {
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('./sw.js')
.then(function (registration) {
// Successful registration
console.log('Hooray. Registration successful, scope is:', registration.scope);
}).catch(function (error) {
// Failed registration, service worker won’t be installed
console.log('Whoops. Service worker registration failed, error:', error);
});
}
}
```
<!--
Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
repository on GitHub, or provide a minimal code example that reproduces the
problem. You may provide a screenshot of the application if you think it is
relevant to your ug report. Here are some tips for providing a minimal
example: https://stackoverflow.com/help/mcve.
-->
## The current behavior
Service worker does not register due to the above error
## The expected behavior
Service worker registers | {'url': 'https://api.github.com/repos/facebook/react/issues/18193/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18193/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18192 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18192/labels{/name} | https://api.github.com/repos/facebook/react/issues/18192/comments | https://api.github.com/repos/facebook/react/issues/18192/events | https://github.com/facebook/react/issues/18192 | 573,593,125 | MDU6SXNzdWU1NzM1OTMxMjU= | 18,192 | Bug: Cannot read property 'duration' of undefined | {'login': 'ahsanplusplus', 'id': 46662667, 'node_id': 'MDQ6VXNlcjQ2NjYyNjY3', 'avatar_url': 'https://avatars.githubusercontent.com/u/46662667?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/ahsanplusplus', 'html_url': 'https://github.com/ahsanplusplus', 'followers_url': 'https://api.github.com/users/ahsanplusplus/followers', 'following_url': 'https://api.github.com/users/ahsanplusplus/following{/other_user}', 'gists_url': 'https://api.github.com/users/ahsanplusplus/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/ahsanplusplus/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/ahsanplusplus/subscriptions', 'organizations_url': 'https://api.github.com/users/ahsanplusplus/orgs', 'repos_url': 'https://api.github.com/users/ahsanplusplus/repos', 'events_url': 'https://api.github.com/users/ahsanplusplus/events{/privacy}', 'received_events_url': 'https://api.github.com/users/ahsanplusplus/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}
{'id': 620368407, 'node_id': 'MDU6TGFiZWw2MjAzNjg0MDc=', 'url': 'https://api.github.com/repos/facebook/react/labels/Resolution:%20Needs%20More%20Information', 'name': 'Resolution: Needs More Information', 'color': 'fffde7', 'default': False, 'description': None}] | closed | false | {'login': 'ahsanplusplus', 'id': 46662667.0, 'node_id': 'MDQ6VXNlcjQ2NjYyNjY3', 'avatar_url': 'https://avatars.githubusercontent.com/u/46662667?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/ahsanplusplus', 'html_url': 'https://github.com/ahsanplusplus', 'followers_url': 'https://api.github.com/users/ahsanplusplus/followers', 'following_url': 'https://api.github.com/users/ahsanplusplus/following{/other_user}', 'gists_url': 'https://api.github.com/users/ahsanplusplus/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/ahsanplusplus/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/ahsanplusplus/subscriptions', 'organizations_url': 'https://api.github.com/users/ahsanplusplus/orgs', 'repos_url': 'https://api.github.com/users/ahsanplusplus/repos', 'events_url': 'https://api.github.com/users/ahsanplusplus/events{/privacy}', 'received_events_url': 'https://api.github.com/users/ahsanplusplus/received_events', 'type': 'User', 'site_admin': False} | [{'login': 'ahsanplusplus', 'id': 46662667, 'node_id': 'MDQ6VXNlcjQ2NjYyNjY3', 'avatar_url': 'https://avatars.githubusercontent.com/u/46662667?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/ahsanplusplus', 'html_url': 'https://github.com/ahsanplusplus', 'followers_url': 'https://api.github.com/users/ahsanplusplus/followers', 'following_url': 'https://api.github.com/users/ahsanplusplus/following{/other_user}', 'gists_url': 'https://api.github.com/users/ahsanplusplus/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/ahsanplusplus/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/ahsanplusplus/subscriptions', 'organizations_url': 'https://api.github.com/users/ahsanplusplus/orgs', 'repos_url': 'https://api.github.com/users/ahsanplusplus/repos', 'events_url': 'https://api.github.com/users/ahsanplusplus/events{/privacy}', 'received_events_url': 'https://api.github.com/users/ahsanplusplus/received_events', 'type': 'User', 'site_admin': False}] | null | [
"This is a really sparse issue description :smile: Can you provide some more information on how you're reproducing the error you're seeing?",
"Duplicate of #18044 ",
"Closing due to lack of response from OP and because it also seems to be a duplicate."
] | 2020-03-01 18:34:31 | 2020-03-11 16:03:51 | 2020-03-11 16:03:50 | NONE | null | null | null | This error happens in devtools (when running devtools shell), I didn't investigate it in detail, but seemingly the reason is that inside InteractionListItem.js we are trying to access commitData[commitIndex].duration however in some cases commitData is an array one index smaller than commitIndex. | {'url': 'https://api.github.com/repos/facebook/react/issues/18192/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18192/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18191 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18191/labels{/name} | https://api.github.com/repos/facebook/react/issues/18191/comments | https://api.github.com/repos/facebook/react/issues/18191/events | https://github.com/facebook/react/issues/18191 | 573,548,253 | MDU6SXNzdWU1NzM1NDgyNTM= | 18,191 | Bug: In DevTools useCallback doesn't keep a stable value | {'login': 'ignas-sedunovas', 'id': 3921290, 'node_id': 'MDQ6VXNlcjM5MjEyOTA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/3921290?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/ignas-sedunovas', 'html_url': 'https://github.com/ignas-sedunovas', 'followers_url': 'https://api.github.com/users/ignas-sedunovas/followers', 'following_url': 'https://api.github.com/users/ignas-sedunovas/following{/other_user}', 'gists_url': 'https://api.github.com/users/ignas-sedunovas/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/ignas-sedunovas/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/ignas-sedunovas/subscriptions', 'organizations_url': 'https://api.github.com/users/ignas-sedunovas/orgs', 'repos_url': 'https://api.github.com/users/ignas-sedunovas/repos', 'events_url': 'https://api.github.com/users/ignas-sedunovas/events{/privacy}', 'received_events_url': 'https://api.github.com/users/ignas-sedunovas/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"This relates to the discussion on #18177 (and #18190).\r\n\r\n### Why does this have anything to do with DevTools?\r\n\r\nDevTools shallowly re-renders components that use hooks in order to build up the map of hook-to-value to show in the selected properties panel. ([Read more about this here if you're interested.](https://github.com/facebook/react/blob/master/packages/react-devtools/OVERVIEW.md#inspecting-hooks))\r\n\r\nWhen it does this re-rendering, it temporarily overrides the React's built-in hooks with [a version that collects this metadata about which hooks (and custom hooks) the component is using](https://github.com/facebook/react/blob/master/packages/react-debug-tools/src/ReactDebugHooks.js). \r\n\r\n1. This re-render is **shallow**. (No children are rendered)\r\n2. The results are not retained or committed (e.g. no DOM update).\r\n3. It does not run any effects callbacks, so no side effects will be run.\r\n4. It does not re-run `useMemo` or `useCallback` functions either (because that would be doing unnecessary \"work\" - since the results are thrown away).\r\n\r\nAs your sandbox shows, the re-render is **detectable** but should not cause any problems, so long as you follow the rules of React (no side effects in render).",
"I'm going to close this issue now since I think it's just a question which has now been answered. Let's talk more if there's still concern though!",
"While I understand the reasons for this, it can be annoying and lead to false negatives when debugging and testing performance of components.\r\n\r\nJust the other day, I was banging my head against a brick wall, trying to figure out why a component was always being rendered twice, until I figure out that it was devtools doing its thing.\r\n\r\nMy component didn't have any side effects in the render, but I still didn't want to it re-render.\r\n\r\nWould it be possible to somehow indicate that a component has been re-rendered by devtools?",
"> Would it be possible to somehow indicate that a component has been re-rendered by devtools?\r\n\r\nIndicate...how?",
"lol, no idea 🤷♂️\r\n\r\nI was kinda hoping you'd have a magic trick up your sleeve 😜\r\n\r\n... just thinking out loud, sorry",
"No worries. It's okay.\r\n\r\nI don't know of a better way of doing this, after putting a good amount of thought into the current approach. There may one though.",
"Hi @bvaughn. Thanks for looking into it.\r\n\r\n>As your sandbox shows, the re-render is detectable but should not cause any problems, so long as you follow the rules of React (no side effects in render).\r\n\r\nI understand this. And I'm not trying to detect a _re-render_ here.\r\n\r\nTo me it _seems_ there's an inconsistency between `useMemo` and `useCallback` inside React DevTools.\r\n\r\nI think my initial sandbox had too much code to display what I'm suspicious about.\r\nCould you take a look at this simplified sandbox? https://codesandbox.io/s/usecallback-vs-usememo-simple-child-0wc1r\r\n\r\nBoth `useMemo` and `useCallback` have an empty deps array. Because of this, I would expect none of them to generate a new value during a shallow re-render by React DevTools. But for some reason `useCallback` generates a new value and `useMemo` returns the old value. To me it seems that `useCallback` loses its memoized value.\r\n\r\n![ZErRZw3cG7](https://user-images.githubusercontent.com/3921290/76160292-3a6d0c80-6129-11ea-93b8-31c5d91b9cb7.gif)\r\n\r\n### I did some debugging of React DevTools ###\r\nI assume the issue is here: https://github.com/facebook/react/blob/master/packages/react-debug-tools/src/ReactDebugHooks.js#L214\r\n`useCallback` always returns the latest `callback` value instead of returning `hook !== null ? hook.memoizedState[0] : callback` as it is done in `useMemo` few lines bellow.\r\n\r\n![image](https://user-images.githubusercontent.com/3921290/76161525-84a7bb00-6134-11ea-9e8c-f7b5d8dde586.png)\r\n\r\nWhat do you think?",
"> To me it seems that `useCallback` loses its memoized value.\r\n\r\nIt doesn't *lose* the memoized value. That value is still around for the next *real* render.\r\n\r\nWhile you're right that there's a discrepancy between the debug tools implementation of `useMemo` and `useCallback`, I don't think it actually matters. The value returned for the shallow render could even be an empty/noop function- because nothing will actually call that method. (It won't be passed to any child components.)",
"I don't object if you'd like to submit a PR that makes the two hook implementations \"match\" in that sense. I also don't think it's that important either way though :smile:"
] | 2020-03-01 13:36:31 | 2020-03-08 16:14:25 | 2020-03-03 17:35:31 | NONE | null | null | null | React version: 16.13.0
## Steps To Reproduce
1. Create a callback with `useCallback` and empty deps array
2. Create a value with `useMemo` and empty deps array
3. Create a sanity check to throw an error when callback doesn't change together with value
4. Inspect the component in React DevTools
Link to code example:
https://codesandbox.io/s/usecallback-result-is-not-stable-in-react-devtools-x9wl7
## The current behavior
Every time I inspect the component in React DevTools, `useCallback` (with empty deps array) creates a new callback and `useMemo` (with empty deps array) doesn't create a new value. This results in my sanity check throwing an error.
(Inspect `MemoAndCallback` component in given code sandbox)
## The expected behavior
Every time I inspect the component in React DevTools, the return value of `useCallback` stays the same and my sanity check passes.
## My current workaround
Given that:
> `useCallback(fn, deps)` is equivalent to `useMemo(() => fn, deps)`.
https://reactjs.org/docs/hooks-reference.html#usecallback
I changed my code to use `useMemo` in those places and the sanity check passes.
(Inspect `MemoAndMemo` component in given code sandbox)
Could this maybe be an issue in my code? | {'url': 'https://api.github.com/repos/facebook/react/issues/18191/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18191/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18190 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18190/labels{/name} | https://api.github.com/repos/facebook/react/issues/18190/comments | https://api.github.com/repos/facebook/react/issues/18190/events | https://github.com/facebook/react/issues/18190 | 573,295,014 | MDU6SXNzdWU1NzMyOTUwMTQ= | 18,190 | Bug: Can react supply a api named 'isDevToolSomeDomClicked' or 'getLatestSetter', I really need it. | {'login': 'fantasticsoul', 'id': 7334950, 'node_id': 'MDQ6VXNlcjczMzQ5NTA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/7334950?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/fantasticsoul', 'html_url': 'https://github.com/fantasticsoul', 'followers_url': 'https://api.github.com/users/fantasticsoul/followers', 'following_url': 'https://api.github.com/users/fantasticsoul/following{/other_user}', 'gists_url': 'https://api.github.com/users/fantasticsoul/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/fantasticsoul/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/fantasticsoul/subscriptions', 'organizations_url': 'https://api.github.com/users/fantasticsoul/orgs', 'repos_url': 'https://api.github.com/users/fantasticsoul/repos', 'events_url': 'https://api.github.com/users/fantasticsoul/events{/privacy}', 'received_events_url': 'https://api.github.com/users/fantasticsoul/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"concent features [demo list](https://codesandbox.io/s/green-tdd-g2mcr)",
"Furthermore, I have try the code below:\r\n```js\r\nimport React, { useState, useEffect } from \"react\";\r\n\r\nconst fnWrapper = {setCount:()=>{}};\r\n\r\nexport default function DemoCounter() {\r\n console.log(\"render DemoCounter \" + Date.now());\r\n const [count, setCount] = useState(0);\r\n fnWrapper.setCount = s=>setCount(s);\r\n useEffect(()=>{\r\n console.log('assign setCount in useEffect');\r\n fnWrapper.setCount = s=>setCount(s);\r\n })\r\n\r\n return (\r\n <div style={{ border: \"1px solid blue\", margin: \"8px\" }}>\r\n input_1 <input\r\n value={count}\r\n onChange={e => fnWrapper.setCount(e.currentTarget.value)}\r\n />\r\n change by wrapped setter\r\n <br />\r\n input_2 <input value={count} onChange={e => setCount(e.currentTarget.value)} />\r\n change by hook setter\r\n </div>\r\n );\r\n}\r\n\r\n```\r\nthen I open react-dev-tool and click the dom in tis panel, and then any typing doesn't works in input_1, but if I type some word in input_2, then typing some word in input_1 will trigger re-render, so I don't think this is a perfect way, that's why I write the code `getSetter` in the issue, try to recover the correct setter.",
"or can react give some api like `getLatestSetter` to resolve my problem? then I need not to write the code `getSetter` above.\r\n```\r\nimport React, { useState, useEffect } from \"react\";\r\n\r\nconst fnWrapper = {setCount:()=>{}};\r\n\r\nexport default function DemoCounter() {\r\n console.log(\"render DemoCounter \" + Date.now());\r\n const [count, setCount] = useState(0);\r\n\r\n // user can always get the latest setter\r\n fnWrapper.setCount = s=>setCount.getLatestSetter()(s);\r\n\r\n}\r\n```",
"@fantasticsoul Please do not continue to open additional issues about this. It's not going to change [the answer](https://github.com/facebook/react/issues/18177#issuecomment-592614239) we keep giving.\r\n\r\nThis now the third time I've said that **side effects belong inside of a `useEffect` callback and not in your render method.** The code you show above **still has a side effect in render**:\r\n```js\r\nimport React, { useState, useEffect } from \"react\";\r\n\r\nconst fnWrapper = {setCount:()=>{}};\r\n\r\nexport default function DemoCounter() {\r\n console.log(\"render DemoCounter \" + Date.now());\r\n const [count, setCount] = useState(0);\r\n\r\n // This is still a side effect in render!\r\n // It is still not allowed!\r\n // Get rid of this line, and leave the one below in `useEffect`.\r\n fnWrapper.setCount = s=>setCount(s);\r\n\r\n useEffect(()=>{\r\n console.log('assign setCount in useEffect');\r\n fnWrapper.setCount = s=>setCount(s);\r\n })\r\n\r\n return (\r\n <div style={{ border: \"1px solid blue\", margin: \"8px\" }}>\r\n input_1 <input\r\n value={count}\r\n onChange={e => fnWrapper.setCount(e.currentTarget.value)}\r\n />\r\n change by wrapped setter\r\n <br />\r\n input_2 <input value={count} onChange={e => setCount(e.currentTarget.value)} />\r\n change by hook setter\r\n </div>\r\n );\r\n}\r\n```\r\n\r\nIf there's still some confusion, that's okay. Let's talk about it on this issue (and not another new issue).",
"thank you so much, I've learned many many interesting things, and I finally resolve my problem perfectly with code below:\r\n[online-demo](https://codesandbox.io/s/test-react-dev-tool-bug-kpb1y)\r\n```js\r\n// code in useObj.js\r\nimport * as React from \"react\";\r\n\r\nlet cursor = 1;\r\nlet corsor_ctx_ = {};\r\nlet cursor_setter_ = {};//cache the setter\r\n\r\nfunction inc() {\r\n cursor++;\r\n}\r\n\r\nfunction getU() {\r\n return cursor;\r\n}\r\n\r\nfunction buildCtx(cursor){\r\n return {\r\n cursor,\r\n renderCount: 1,\r\n }\r\n}\r\n\r\nexport default function useObjectState(obj) {\r\n const curCursor = getU();\r\n const [lockedCursor] = React.useState(curCursor);\r\n const [state, setter] = React.useState(obj);\r\n if(!cursor_setter_[lockedCursor]){\r\n cursor_setter_[lockedCursor] = setter;\r\n }\r\n\r\n let ctx;\r\n if (curCursor === lockedCursor) {\r\n ctx = buildCtx(lockedCursor);\r\n inc();\r\n corsor_ctx_[lockedCursor] = ctx;\r\n } else {\r\n ctx = corsor_ctx_[lockedCursor];\r\n if(!ctx) ctx = buildCtx(lockedCursor); \r\n ctx.renderCount++;\r\n }\r\n\r\n ctx.state = state;\r\n ctx.setState = (partialState) => {\r\n const newState = Object.assign({}, state, partialState);\r\n console.log(newState);\r\n cursor_setter_[lockedCursor](newState);\r\n }\r\n\r\n return ctx;\r\n}\r\n```",
"I improve my code continually, now its answer is more clear to me:\r\n[online demo](https://codesandbox.io/s/test-react-dev-tool-bug-kpb1y)\r\n```js\r\nimport React, { useState, useRef } from \"react\";\r\n\r\nfunction DemoCounter() {\r\n console.log(\"render DemoCounter \" + Date.now());\r\n const [count, setCount] = useState(0);\r\n const fn = useRef({})\r\n\r\n const onChangeNormal = e => setCount(e.currentTarget.value);\r\n fn.current.setCount = (val, s)=>{\r\n if(s)s(val);\r\n // note this, when call setCount will cause a react-dev-tool 'bug':\r\n // if you open the react-dev-tool and click dom, then line 3 will \r\n // no longer re-render if you type word in its input box.\r\n // but actually it is not a bug\r\n // see https://github.com/facebook/react/blob/master/packages/react-debug-tools/src/ReactDebugHooks.js, \r\n //as a result: the more recent render (by DevTools) causes you to override it \r\n // with the injected no-op value so that future calls don't actually update state\r\n else setCount(val);\r\n };\r\n\r\n const onChangeOk = e => fn.current.setCount(e.currentTarget.value, setCount);\r\n const onChangeNotOk = e => fn.current.setCount(e.currentTarget.value);\r\n\r\n return (\r\n <div style={{ border: \"1px solid blue\", margin: \"8px\" }}>\r\n <h3>\r\n if you open the react-dev-tool and click dom, then line 3\r\n will no longer re-render if you type word in its input box\r\n </h3>\r\n line 1: <input value={count} onChange={onChangeNormal} />\r\n change by onChangeNormal\r\n <br />\r\n line 2: <input value={count} onChange={onChangeOk} />\r\n change by onChangeOk\r\n <br />\r\n line 3: <input value={count} onChange={onChangeNotOk} />\r\n change by onChangeNotOk\r\n </div>\r\n );\r\n}\r\n\r\n\r\nfunction DemoCounterBetter() {\r\n console.log(\"render DemoCounter \" + Date.now());\r\n const [count, setCount] = useState(0);\r\n const setter = useRef({setCount, fn:0})\r\n const firstRenderSetter = setter.current.setCount;\r\n\r\n const onChangeNormal = e => setCount(e.currentTarget.value);\r\n setter.current.setCount = (val)=>{\r\n firstRenderSetter(val);\r\n };\r\n\r\n const onChangeOk = e => setter.current.setCount(e.currentTarget.value);\r\n const onChangeOkAlso = e => setter.current.setCount(e.currentTarget.value);\r\n\r\n return (\r\n <div style={{ border: \"1px solid blue\", margin: \"8px\" }}>\r\n <h3>\r\n better one\r\n </h3>\r\n line 1: <input value={count} onChange={onChangeNormal} />\r\n change by onChangeNormal\r\n <br />\r\n line 2: <input value={count} onChange={onChangeOk} />\r\n change by onChangeOk\r\n <br />\r\n line 3: <input value={count} onChange={onChangeOkAlso} />\r\n change by onChangeOkAlso\r\n </div>\r\n );\r\n}\r\n\r\nexport default function App(){\r\n return (\r\n <>\r\n <DemoCounter />\r\n <hr />\r\n <DemoCounterBetter />\r\n </>\r\n )\r\n}\r\n```\r\nI hope my answer can help more developer to know more about this problem. and thank you for your patience over and over again.",
"@fantasticsoul It's super unclear to me why you're doing what you're doing with refs in the example above. Mutating a ref during render **is still a side effect** and has all of the same potential problems as any side effect (although it's an improvement from the earlier example of mutating a value *outside of the function*).\r\n\r\n```js\r\nfunction DemoCounter() {\r\n const [count, setCount] = useState(0);\r\n const fn = useRef({});\r\n\r\n // This event handler looks good 👍\r\n const onChangeNormal = e => setCount(e.currentTarget.value);\r\n\r\n // This is a side effect during render!\r\n // It will cause broken behavior and should be removed!\r\n fn.current.setCount = (val, s) => {\r\n if (s) s(val);\r\n else setCount(val);\r\n };\r\n\r\n // These callbacks should literally just call setCount() directly.\r\n // They is no need to use the fn ref.\r\n // It will cause bugs where there would otherwise be no bugs.\r\n const onChangeOk = e => fn.current.setCount(e.currentTarget.value, setCount);\r\n const onChangeNotOk = e => fn.current.setCount(e.currentTarget.value);\r\n\r\n // ...\r\n}\r\n\r\nfunction DemoCounterBetter() {\r\n const [count, setCount] = useState(0);\r\n const setter = useRef({ setCount, fn: 0 });\r\n\r\n // What is this? Why do you need it?\r\n // Just use setCount directly.\r\n const firstRenderSetter = setter.current.setCount;\r\n\r\n // This event handler looks good 👍\r\n const onChangeNormal = e => setCount(e.currentTarget.value);\r\n\r\n // This is a side effect during render!\r\n // It will cause broken behavior and should be removed!\r\n setter.current.setCount = val => {\r\n firstRenderSetter(val);\r\n };\r\n\r\n // These callbacks should literally just call setCount() directly.\r\n // They is no need to use the fn ref.\r\n // It will cause bugs where there would otherwise be no bugs.\r\n const onChangeOk = e => setter.current.setCount(e.currentTarget.value);\r\n const onChangeOkAlso = e => setter.current.setCount(e.currentTarget.value);\r\n\r\n // ...\r\n}\r\n```"
] | 2020-02-29 13:26:44 | 2020-03-02 17:30:45 | 2020-02-29 17:48:09 | NONE | null | null | null | React version: 16.12.0
## Description
I need an api or a global variable to know whether the dom node in react-dev-tool panel clicked or not.
## Steps To Reproduce
[see the issue](https://github.com/facebook/react/issues/18177)
I finally resolve this problem in the issue above, but I really need react expose an api may named `isDevToolSomeDomClicked` or just let react-dev-tool bind a global var named `__REACT_DEVTOOL_DOM_CLICKED__`, and set it `true` when user open react-dev-tool and click some dom, then my code will have a better performance.
Link to code example:
[visit the example](https://codesandbox.io/s/test-react-dev-tool-bug-kpb1y)
or see the code below
```js
import React, { useState } from "react";
const fnWrapper = { setCount: () => {} };
const fnList = [];
const MyRenderCount = { num: 0 };
const MyCompFlag = { isCorrectedAfterFail: false };
// this code is just a example but the final implement result will base on ths
function getSetter(setter) {
fnList.unshift(setter);
return val => {
// now I always set true here,
// but really I need react expose a api may named 'isDevToolSomeDomClicked'
// or a global variable named '__REACT_DEVTOOL_DOM_CLICKED__'
// to let me decide open this feature or not.
const isDevToolSomeDomClicked = true;
fnList.splice(2);
if (!isDevToolSomeDomClicked) {
fnList.pop()(val);
return;
}
const prevFn = fnList[1];
const curFn = fnList[0];
const snapshortFn = prevFn || curFn;
if (MyCompFlag.isCorrectedAfterFail) {
curFn && curFn(val);
return;
}
if (snapshortFn) {
const beforeRun = MyRenderCount.num;
snapshortFn(val);
// verify if snapshortFn works weil later
setTimeout(() => {
const afterRun = MyRenderCount.num;
// re-render fail, try another setter
if (beforeRun === afterRun) {
MyCompFlag.isCorrectedAfterFail = true;
curFn && curFn(val); // pick another one, then re-render will always be right
}
}, 1000);
}
};
}
export default function DemoCounter() {
console.log("render DemoCounter " + Date.now());
const [count, setCount] = useState(0);
fnWrapper.setCount = getSetter(setCount);
return (
<div style={{ border: "1px solid blue", margin: "8px" }}>
<input
value={count}
onChange={e => fnWrapper.setCount(e.currentTarget.value)}
/>
change by wrapped setter
<br />
<input value={count} onChange={e => setCount(e.currentTarget.value)} />3
change by hook setter
</div>
);
}
```
## The current behavior
I don't know the dom node in react-dev-tool panel clicked or not
## The expected behavior
I can all a api or read a global variable to know the dom node in react-dev-tool panel clicked or not.
## why I need the flag (__REACT_DEVTOOL_DOM_CLICKED__).
Recently I spend many many time to create a new state management framework called [concent](https://github.com/concentjs/concent), it is a predictable、zero-cost-use、progressive、high performance's enhanced state management solution, expose the 100% same api to both class component and function component, to let the two kind of components share the same code including life-cycle method.
some online examples:
* [concent todo mvc](https://codesandbox.io/s/todoapp-react-concent-fvgvc) **vs** [redux&hook todo mvc](https://codesandbox.io/s/github/blacksonic/todoapp-react-hooks)
* [traditional hook calculator](https://codesandbox.io/s/react-calculator-84f2m) **vs** [concent calculator](https://codesandbox.io/s/react-calculator-8hvqw)
* [traditional hook query list](https://codesandbox.io/s/elastic-dhawan-qw7m4) **vs** [concent query list](https://codesandbox.io/s/query-react-list-00mkd)& [concent shared query list](https://codesandbox.io/s/query-react-list-shared-state-l3fhb)
* [standard js enterprise project](https://codesandbox.io/s/concent-guide-xvcej)
* [standard ts enterprise project](https://codesandbox.io/s/concent-guide-ts-zrxd5)
But when I open the react-dev-tool and click the dom, my function will not re-render.
see the [demo](https://codesandbox.io/s/green-tdd-g2mcr), I really don't want my framework user trigger this bug when they open react-dev-tool, **I really don't want let them down**, could react team help me to meet my need? please, thank you sincerely.
or can react give some api like **getLatestSetter** to resolve my problem? then I need not to write the code getSetter above, my code will be more elegant like below:
```js
import React, { useState, useEffect } from "react";
const fnWrapper = {setCount:()=>{}};
export default function DemoCounter() {
console.log("render DemoCounter " + Date.now());
const [count, setCount] = useState(0);
// user can always get the latest setter
fnWrapper.setCount = s=>setCount.getLatestSetter()(s);
}
``` | {'url': 'https://api.github.com/repos/facebook/react/issues/18190/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18190/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18189 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18189/labels{/name} | https://api.github.com/repos/facebook/react/issues/18189/comments | https://api.github.com/repos/facebook/react/issues/18189/events | https://github.com/facebook/react/pull/18189 | 573,263,846 | MDExOlB1bGxSZXF1ZXN0MzgxODI3MDkz | 18,189 | Do not warn when a controlled input has `onInput` handler. | {'login': 'utkarshkukreti', 'id': 217126, 'node_id': 'MDQ6VXNlcjIxNzEyNg==', 'avatar_url': 'https://avatars.githubusercontent.com/u/217126?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/utkarshkukreti', 'html_url': 'https://github.com/utkarshkukreti', 'followers_url': 'https://api.github.com/users/utkarshkukreti/followers', 'following_url': 'https://api.github.com/users/utkarshkukreti/following{/other_user}', 'gists_url': 'https://api.github.com/users/utkarshkukreti/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/utkarshkukreti/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/utkarshkukreti/subscriptions', 'organizations_url': 'https://api.github.com/users/utkarshkukreti/orgs', 'repos_url': 'https://api.github.com/users/utkarshkukreti/repos', 'events_url': 'https://api.github.com/users/utkarshkukreti/events{/privacy}', 'received_events_url': 'https://api.github.com/users/utkarshkukreti/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"Hi @utkarshkukreti! \n\nThank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.\n\nIn order for us to review and merge your code, please sign at <https://code.facebook.com/cla>. **If you are contributing on behalf of someone else (eg your employer)**, the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.\n\nIf you have received this in error or have any questions, please contact us at [cla@fb.com](mailto:cla@fb.com?subject=CLA%20for%20facebook%2Freact%20%2318189). Thanks!",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18189/builds/12615) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit b7936ad40d8f268b35ea3bd445f2f4c303148f52:\n\n|Sandbox| Source |\n|--|--|\n|[great-hugle-hpefc](https://codesandbox.io/s/great-hugle-hpefc)| Configuration |\n",
"Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against b7936ad40d8f268b35ea3bd445f2f4c303148f52\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against b7936ad40d8f268b35ea3bd445f2f4c303148f52\n</p>\n"
] | 2020-02-29 09:47:22 | 2020-04-01 18:58:08 | 2020-04-01 18:58:08 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18189', 'html_url': 'https://github.com/facebook/react/pull/18189', 'diff_url': 'https://github.com/facebook/react/pull/18189.diff', 'patch_url': 'https://github.com/facebook/react/pull/18189.patch', 'merged_at': datetime.datetime(2020, 4, 1, 18, 58, 8)} | ## Summary
`onInput` behaves the same as `onChange` for controlled inputs as far as I know, so React should not print the following warning when `onInput` is present.
> Failed prop type: You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.
## Test Plan
This code prints the warning above before this commit, but it shouldn't because `onInput` = `onChange` for controlled inputs.
ReactDOM.render(<input value="..." onInput={() => {}} />, container);
I have added tests for this and they pass. | {'url': 'https://api.github.com/repos/facebook/react/issues/18189/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18189/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18188 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18188/labels{/name} | https://api.github.com/repos/facebook/react/issues/18188/comments | https://api.github.com/repos/facebook/react/issues/18188/events | https://github.com/facebook/react/issues/18188 | 573,136,750 | MDU6SXNzdWU1NzMxMzY3NTA= | 18,188 | Bug: React Developer Tools conflicts with Firefox sass sourcemaps on webpack | {'login': 'alvaro-escalante', 'id': 14359910, 'node_id': 'MDQ6VXNlcjE0MzU5OTEw', 'avatar_url': 'https://avatars.githubusercontent.com/u/14359910?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/alvaro-escalante', 'html_url': 'https://github.com/alvaro-escalante', 'followers_url': 'https://api.github.com/users/alvaro-escalante/followers', 'following_url': 'https://api.github.com/users/alvaro-escalante/following{/other_user}', 'gists_url': 'https://api.github.com/users/alvaro-escalante/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/alvaro-escalante/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/alvaro-escalante/subscriptions', 'organizations_url': 'https://api.github.com/users/alvaro-escalante/orgs', 'repos_url': 'https://api.github.com/users/alvaro-escalante/repos', 'events_url': 'https://api.github.com/users/alvaro-escalante/events{/privacy}', 'received_events_url': 'https://api.github.com/users/alvaro-escalante/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}
{'id': 620368407, 'node_id': 'MDU6TGFiZWw2MjAzNjg0MDc=', 'url': 'https://api.github.com/repos/facebook/react/labels/Resolution:%20Needs%20More%20Information', 'name': 'Resolution: Needs More Information', 'color': 'fffde7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This seems like a sass loader or webpack. Issue not a React one?",
"It’s not clear from this issue what this has to do with React. By “add-on” do you mean React dev tools? How would the devtools affect your situation? Please describe an exact set of steps, with screenshots, to reproduce this locally. ",
"I meant the React Developer Tools add-on for Firefox, its home page link directs you here.\r\n\r\n![Screenshot 2020-02-29 at 15 53 56](https://user-images.githubusercontent.com/14359910/75610750-eb611f00-5b0b-11ea-82a8-db04bdcbd7f3.jpg)\r\n\r\n![Screenshot 2020-02-29 at 15 59 14](https://user-images.githubusercontent.com/14359910/75610851-fb2d3300-5b0c-11ea-89b9-300c44cc888a.jpg)\r\n\r\n",
"I still have no idea how React DevTools could be interfering with your browser's source maps. It's just an extension that injects some JavaScript into the active tab for React to interact with. Has nothing to do with actual loading or parsing of resources.\r\n\r\nIf anything, this seems like a browser bug.",
"I know it sounds strange, but it does happen, as bizarre as it may be. Toggle the React Developer Tools off and all is good.",
"Sounds like a browser bug. The two should have **nothing** to do with each other.",
"> Sounds like a browser bug. The two should have **nothing** to do with each other.\r\n\r\nYou are right they should not, but they do. I think that a tool that comes in to do a task on a browsers should consider the browsers they walk in to. Blaming the browser for something the browser was doing fine before the tool was enabled does not make any sense.",
"We haven’t heard of this issue from anyone else. There isn’t much we can do from our side, I’d recommend filing an issue at https://bugzilla.mozilla.org/home against Firefox. I’ll leave this open for a while to see if anyone else has any idea. ",
"I think we should just close this bug, Sunil. I think @alvaro-escalante (or anyone) should report this to Mozilla. For the time being, I am not aware of anything we are doing (or could do) that should affect how the browser loads or parses source maps.",
"@bvaughn Have you tried to reproduce the problem? \r\n\r\nI just don't understand why it should be Firefox's problem, when disabling the add-on it fixes the issue.\r\n\r\nI know it's a very niche problem that involves Firefox, Webpack, Sass source-maps and React Developer Tools, and so I am quite sure that few people have figured out that disabling the add-on fixes the problem. But it is a bug nonetheless.\r\n\r\nMost people that care about source-maps and use Firefox, most likely, have turned to Google Chrome cause there's no problem there, If this is the stance... you might as well not do a version for Firefox.",
"Hello there @alvaro-escalante.\r\n\r\nI had some time today to check your issue.\r\n\r\nI can't reproduce the problem with Firefox 73.\r\n\r\nScreen bellow:\r\n<img width=\"1679\" alt=\"Screenshot 2020-03-03 at 14 21 59\" src=\"https://user-images.githubusercontent.com/23095052/75779858-b72f6d80-5d5a-11ea-9367-b19306ea1cf8.png\">\r\n\r\nFor me the latest stable version of Firefox is 73.\r\nI can see that Firefox 74 is currently in **beta** judging by [MDN](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/74): 👇 \r\n\r\n<img width=\"577\" alt=\"Screenshot 2020-03-03 at 14 26 43\" src=\"https://user-images.githubusercontent.com/23095052/75780142-2311d600-5d5b-11ea-84b9-28585f25a52d.png\">\r\n\r\nAs @bvaughn and @threepointone were saying - we haven't heard of a similar issue before. \r\n\r\nI suggest we close this issue as it seems that it's on Mozilla's side. \r\nIt might be still be worth while to file an issue on https://bugzilla.mozilla.org/home \r\n",
"Closing. Happy to reopen if 1. There’s a reproducing case 2. There’s a logged issue with Firefox’ tracker and any suggested action that could isolate this as a react issue. ",
"> Hello there @alvaro-escalante.\r\n> \r\n> I had some time today to check your issue.\r\n> \r\n> I can't reproduce the problem with Firefox 73.\r\n> \r\n> Screen bellow:\r\n> <img alt=\"Screenshot 2020-03-03 at 14 21 59\" width=\"1679\" src=\"https://user-images.githubusercontent.com/23095052/75779858-b72f6d80-5d5a-11ea-9367-b19306ea1cf8.png\">\r\n> \r\n> For me the latest stable version of Firefox is 73.\r\n> I can see that Firefox 74 is currently in **beta** judging by [MDN](https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/74): 👇\r\n> \r\n> <img alt=\"Screenshot 2020-03-03 at 14 26 43\" width=\"577\" src=\"https://user-images.githubusercontent.com/23095052/75780142-2311d600-5d5b-11ea-84b9-28585f25a52d.png\">\r\n> \r\n> As @bvaughn and @threepointone were saying - we haven't heard of a similar issue before.\r\n> \r\n> I suggest we close this issue as it seems that it's on Mozilla's side.\r\n> It might be still be worth while to file an issue on https://bugzilla.mozilla.org/home\r\n\r\nHi @hristo-kanchev,\r\n\r\nThanks for trying this out.\r\n\r\nThe reason why it did not replicate is because you used my latest boilerplate repo which has a workaround on `webpack.modules.js` that uses `MiniCssExtractPlugin`. If you comment it out and use the commented loader below, the faster `style-loader`, the problem will indeed occur.\r\n\r\nSo basically you did not follow the **Steps To Reproduce** layout on my first bug comment.\r\n\r\n![Screenshot 2020-03-03 at 17 11 53](https://user-images.githubusercontent.com/14359910/75800849-19e03380-5d72-11ea-8b9d-18ffdea3c81e.jpg)\r\n\r\n",
"> I just don't understand why it should be Firefox's problem, when disabling the add-on it fixes the issue.\r\n\r\n> Most people that care about source-maps and use Firefox, most likely, have turned to Google Chrome cause there's no problem there, If this is the stance... you might as well not do a version for Firefox.\r\n\r\nBrowsers can have bugs that websites (or extensions) trigger. The websites/extensions can work around the bugs in some cases. (If you know of a workaround for this one, other than disabling the extension, let's talk!) But the bugs themselves **should be fixed on the browser side**. Right?\r\n\r\nAn extension like React DevTools **should not be able to break sourcemap parsing for the browser**. It should not be possible, **even if the extension wanted to**. The fact that that's happening, to me, indicates that there's something on the Firefox side that should be fixed.",
"Hi @alvaro-escalante\r\n\r\nEven when I enabled the config that was commented out (the one you mentioned), I still wasn't able to replicate this.\r\n![Mar-03-2020 18-27-49](https://user-images.githubusercontent.com/23095052/75802278-c4f5ea80-5d7c-11ea-81a3-f82cea1c1213.gif)\r\n",
"> I tried this with all versions of Firefox and no add-ons but the RDT.\r\n\r\nOut of curiosity, I wonder if you would be willing to try with a different add-on (e.g. Redux DevTools, Vue or Preact DevTools) just to provide an additional data point.",
"@bvaughn, sure:\r\n\r\nIt turns out that Redux DevTools also triggers it:\r\n\r\nReact Developer tools: ❌\r\nRedux DevTools: ❌\r\nPreact Developers Tools: ✅\r\nVue.js devtools: ✅\r\n\r\n\r\n![bad](https://user-images.githubusercontent.com/14359910/75808068-62055300-5d7e-11ea-8a0d-dc5b76e51268.jpg)\r\n![good](https://user-images.githubusercontent.com/14359910/75808087-6a5d8e00-5d7e-11ea-88c5-5ab2f073292c.jpg)\r\n\r\n"
] | 2020-02-29 03:19:51 | 2020-03-03 18:40:20 | 2020-03-03 13:34:09 | NONE | null | null | null | The React Developer Tools add-on conflicts with Firefox source maps displaying just `inline` for all sass partials, works on Google Chrome. When the add-on is disabled it all works fine again.
React version: 16.13.0
Firefox version: 74
## Steps To Reproduce
1. Use `style-loader`, `css-loader` and `sass-loader` with the add-on enabled on Firefox
2. Open Firefox Inspector, the source maps file name displays `inline`
```
module: {
rules: [
{
test: /\.scss$/,
include,
use: ['style-loader', 'css-loader?sourceMap', 'sass-loader?sourceMap']
}
]
}
```
## The current behavior
It displays `inline:` for file name on Firefox inspector
## The expected behavior
To display proper partials e.g.` _page.sass:`
| {'url': 'https://api.github.com/repos/facebook/react/issues/18188/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18188/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18187 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18187/labels{/name} | https://api.github.com/repos/facebook/react/issues/18187/comments | https://api.github.com/repos/facebook/react/issues/18187/events | https://github.com/facebook/react/pull/18187 | 573,101,461 | MDExOlB1bGxSZXF1ZXN0MzgxNjc3ODY4 | 18,187 | Bump react-shallow-renderer to 16.13.1 | {'login': 'NMinhNguyen', 'id': 2852660, 'node_id': 'MDQ6VXNlcjI4NTI2NjA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/2852660?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/NMinhNguyen', 'html_url': 'https://github.com/NMinhNguyen', 'followers_url': 'https://api.github.com/users/NMinhNguyen/followers', 'following_url': 'https://api.github.com/users/NMinhNguyen/following{/other_user}', 'gists_url': 'https://api.github.com/users/NMinhNguyen/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/NMinhNguyen/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/NMinhNguyen/subscriptions', 'organizations_url': 'https://api.github.com/users/NMinhNguyen/orgs', 'repos_url': 'https://api.github.com/users/NMinhNguyen/repos', 'events_url': 'https://api.github.com/users/NMinhNguyen/events{/privacy}', 'received_events_url': 'https://api.github.com/users/NMinhNguyen/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18187/builds/15115) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 2a9418377c6e3a372ab448fe29f30645a1313198:\n\n|Sandbox| Source |\n|--|--|\n|[dank-tree-ld9ho](https://codesandbox.io/s/dank-tree-ld9ho)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 2a9418377c6e3a372ab448fe29f30645a1313198\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 2a9418377c6e3a372ab448fe29f30645a1313198\n</p>\n",
"Alternatively, I could introduce a breaking change to `react-shallow-renderer` (making it v17.0.0) to only used named exports, and then we tweak `react-test-renderer` to re-export it accordingly (and without interop workarounds).\r\n\r\nSomething like\r\n\r\n```diff\r\n// react-shallow-renderer/src/ReactShallowRenderer.js\r\n- export default ReactShallowRenderer;\r\n+ export { ReactShallowRenderer }; // while still keeping the static `createRenderer` property for backwards compat\r\n+ export const createRenderer = function() {\r\n+ return new ReactShallowRenderer();\r\n+ };\r\n\r\n// packages/react-test-renderer/npm/shallow.js\r\n- module.exports = require('react-shallow-renderer');\r\n+ module.exports = require('react-shallow-renderer').ReactShallowRenderer;\r\n\r\n// packages/react-test-renderer/shallow.js\r\n- export {default} from 'react-shallow-renderer';\r\n+ export {ReactShallowRenderer as default} from 'react-shallow-renderer';\r\n```",
"Exposing the class was always weird (and probably an accident given createRenderer exists). Unfortunately that's what the docs already show so it's likely people use it widely.",
"> Exposing the class was always weird (and probably an accident given createRenderer exists). Unfortunately that's what the docs already show so it's likely people use it widely.\r\n \r\nYeah I don’t think I should remove the class export. However, given it’s a new package (and it’s unlikely that a lot of people have adopted it already), I’m open to cutting a new major release that uses a named export to export the class. When/if people migrate from `react-test-renderer/shallow` they’d have to update their imports anyway, and in my opinion it’s not that much more work to grab (destructure in CJS) `ReactShallowRenderer`.\r\n\r\n@gaearon has suggested via Twitter DM to remove `module` field (since the ESM story is somewhat unclear atm) which I’m kinda open to doing as well, but I think I slightly prefer switching to named exports. @sebmarkbage do you have any thoughts on this? Removing `module` might mean re-enabling `commonjs` plugin for the shallow renderer (like you’re already doing for ART), but maybe that’s an acceptable trade-off?",
"One more solution: follow the approach taken in https://github.com/mridgway/hoist-non-react-statics/pull/86 to ensure the CJS version always exports a `.default` property. This would be a breaking change for CJS but ESM would be unaffected. "
] | 2020-02-29 01:47:39 | 2020-03-17 00:36:14 | 2020-03-17 00:35:29 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18187', 'html_url': 'https://github.com/facebook/react/pull/18187', 'diff_url': 'https://github.com/facebook/react/pull/18187.diff', 'patch_url': 'https://github.com/facebook/react/pull/18187.patch', 'merged_at': datetime.datetime(2020, 3, 17, 0, 35, 29)} | See https://github.com/webpack/webpack/issues/7973
### Most recent edit
I've now removed the `module` field from `react-shallow-renderer` to avoid ESM/CJS interop issues and published v16.13.1 of the package (see related PR https://github.com/NMinhNguyen/react-shallow-renderer/pull/34).
### Edit
Just came across https://github.com/webpack/webpack/issues/6584 as well
<!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.
Before submitting a pull request, please make sure the following is done:
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
9. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
10. If you haven't already, complete the CLA.
Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->
## Summary
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
This change fixes a plausible CJS <-> ESM interop issue in webpack that I mentioned in https://github.com/facebook/react/pull/18186#issuecomment-592794066 (see https://github.com/webpack/webpack/issues/7973 for details).
I was actually able to reproduce this issue by tweaking `node_modules` (to use `react-shallow-renderer`) and running `yarn test:karma` in Material-UI's repo - https://github.com/mui-org/material-ui/blob/aa0963253bd682d0c08f21114037749e3e9f0817/package.json#L36
Although it does pick up the ESM version of `react-shallow-renderer`, Enzyme uses `_interopRequireDefault` (https://unpkg.com/browse/enzyme-adapter-react-16@1.15.2/build/ReactSixteenAdapter.js) when `require()`-ing it so things don't actually break. But imagine a proper CJS setup (with webpack) where users are doing `require('react-test-renderer/shallow')`, they could get this `.default` key.
I'm not so concerned about direct imports of `react-shallow-renderer` (as in, not transitively via `react-test-renderer/shallow`) because it's a new package, so I don't think dropping the ESM build is worth it.
Note: this issue doesn't affect Jest (and as a result, CRA).
## Test Plan
<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. -->
I modified `react-test-renderer/shallow` like so in Material-UI's `node_modules`:
```js
const ReactShallowRenderer = require('react-shallow-renderer')
console.log('Resolved path:', require.resolve('react-shallow-renderer'))
console.log({__esModule: ReactShallowRenderer.__esModule, ReactShallowRenderer})
module.exports = ReactShallowRenderer;
```
And got the following output:
> HeadlessChrome 80.0.3987 (Mac OS X 10.15.1) LOG: 'Resolved path: ./node_modules/react-shallow-renderer/esm/index.js'
> HeadlessChrome 80.0.3987 (Mac OS X 10.15.1) LOG: Object{__esModule: true, ReactShallowRenderer: Object{default: function ReactShallowRenderer() { ... }}}
| {'url': 'https://api.github.com/repos/facebook/react/issues/18187/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18187/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18186 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18186/labels{/name} | https://api.github.com/repos/facebook/react/issues/18186/comments | https://api.github.com/repos/facebook/react/issues/18186/events | https://github.com/facebook/react/pull/18186 | 573,081,673 | MDExOlB1bGxSZXF1ZXN0MzgxNjYwNTUx | 18,186 | Only use Rollup's CommonJS plugin for "react-art" | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18186/builds/12602) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 598f445bb60ccd312fa03033cb1cc83b5a79db2c:\n\n|Sandbox| Source |\n|--|--|\n|[crazy-nobel-7tud8](https://codesandbox.io/s/crazy-nobel-7tud8)| Configuration |\n",
"@NMinhNguyen I merged yours and rebased mine.",
"I actually realised something.. I remember seeing an issue in `hoist-non-react-statics` https://github.com/mridgway/hoist-non-react-statics/issues/52 where it used to be published with `module` field and it broke another dependency that was doing `require('hoist-non-react-statics')` (https://github.com/kentor/react-click-outside/blob/e3e1337/index.js#L3) because webpack automatically favours ESM. I wonder if I should update the forwarding module https://github.com/facebook/react/blob/739f20beda56a28a9212e3478571c866babee118/packages/react-test-renderer/npm/shallow.js#L3 to have a `.default` check? Perhaps there's some CJS setup somewhere that uses webpack (e.g. to serve bundles in the browser via Karma), and it could break. Didn't want to create a separate issue for this (kinda need more time to repro as well), but thought I'd mention it somewhere.",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: c26506a7d20a6eafb84ed43b137ebe3c68df6bcd...598f445bb60ccd312fa03033cb1cc83b5a79db2c</p>\n\n\n \n## jest-react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \njest-react.development.js | -33.8% | -35.3% | 5.95 KB | 3.93 KB | 2.13 KB | 1.38 KB | NODE_DEV\n**jest-react.production.min.js** | **-34.0%** | **-28.5%** | **2.5 KB** | **1.65 KB** | **1.26 KB** | **926 B** | **NODE_PROD**\n\n## react-debug-tools\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-debug-tools.development.js | -9.9% | -12.4% | 20.28 KB | 18.27 KB | 5.85 KB | 5.13 KB | NODE_DEV\n**react-debug-tools.production.min.js** | **-13.7%** | **-15.1%** | **6.24 KB** | **5.38 KB** | **2.45 KB** | **2.08 KB** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 7903e43124f095bcce7bd0c8189d996312f60988\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: c26506a7d20a6eafb84ed43b137ebe3c68df6bcd...598f445bb60ccd312fa03033cb1cc83b5a79db2c</p>\n\n\n \n## react-debug-tools\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-debug-tools.development.js | -9.9% | -12.5% | 20.27 KB | 18.26 KB | 5.84 KB | 5.12 KB | NODE_DEV\n**react-debug-tools.production.min.js** | **-13.7%** | **-15.1%** | **6.23 KB** | **5.37 KB** | **2.44 KB** | **2.07 KB** | **NODE_PROD**\n\n## jest-react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \njest-react.development.js | -33.9% | -35.4% | 5.93 KB | 3.92 KB | 2.12 KB | 1.37 KB | NODE_DEV\n**jest-react.production.min.js** | **-34.2%** | **-28.5%** | **2.49 KB** | **1.64 KB** | **1.25 KB** | **918 B** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 7903e43124f095bcce7bd0c8189d996312f60988\n</p>\n"
] | 2020-02-29 00:34:29 | 2020-02-29 00:48:30 | 2020-02-29 00:46:17 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18186', 'html_url': 'https://github.com/facebook/react/pull/18186', 'diff_url': 'https://github.com/facebook/react/pull/18186.diff', 'patch_url': 'https://github.com/facebook/react/pull/18186.patch', 'merged_at': datetime.datetime(2020, 2, 29, 0, 46, 17)} | This upgrades the shallow renderer dep, and properly make react-debug-tools and jest-react depend on object-assign as an external dependency instead of compiling it in.
This means that "art" is our only CJS dependency that needs to be compiled with Rollup. So we can now disable the CJS plugin for everything else. That ensures we don't reintroduce new CJS dependencies.
I'm hoping to port "art" to ESM or we can just drop the UMD build. Then we can get rid of the plugin completely. | {'url': 'https://api.github.com/repos/facebook/react/issues/18186/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18186/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18185 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18185/labels{/name} | https://api.github.com/repos/facebook/react/issues/18185/comments | https://api.github.com/repos/facebook/react/issues/18185/events | https://github.com/facebook/react/pull/18185 | 573,067,832 | MDExOlB1bGxSZXF1ZXN0MzgxNjQ4ODU3 | 18,185 | Update react-shallow-renderer from 16.12.0 to 16.13.0 | {'login': 'NMinhNguyen', 'id': 2852660, 'node_id': 'MDQ6VXNlcjI4NTI2NjA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/2852660?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/NMinhNguyen', 'html_url': 'https://github.com/NMinhNguyen', 'followers_url': 'https://api.github.com/users/NMinhNguyen/followers', 'following_url': 'https://api.github.com/users/NMinhNguyen/following{/other_user}', 'gists_url': 'https://api.github.com/users/NMinhNguyen/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/NMinhNguyen/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/NMinhNguyen/subscriptions', 'organizations_url': 'https://api.github.com/users/NMinhNguyen/orgs', 'repos_url': 'https://api.github.com/users/NMinhNguyen/repos', 'events_url': 'https://api.github.com/users/NMinhNguyen/events{/privacy}', 'received_events_url': 'https://api.github.com/users/NMinhNguyen/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18185/builds/12597) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit ad810a82f1f1983fc529d3b84808b7883721f856:\n\n|Sandbox| Source |\n|--|--|\n|[floral-framework-y4fxv](https://codesandbox.io/s/floral-framework-y4fxv)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 26aa1987ce823f54ebc90b2538184fefbc16b99a...ad810a82f1f1983fc529d3b84808b7883721f856</p>\n\n\n \n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactTestRenderer-dev.js | 0.0% | -0.0% | 552.1 KB | 552.1 KB | 116.54 KB | 116.54 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | -2.9% | -2.1% | 39.53 KB | 38.39 KB | 9.48 KB | 9.29 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **:small_red_triangle:+0.2%** | **:small_red_triangle:+0.2%** | **12.88 KB** | **12.91 KB** | **3.93 KB** | **3.93 KB** | **UMD_PROD**\nreact-test-renderer.development.js | 0.0% | -0.0% | 550.93 KB | 550.93 KB | 114.74 KB | 114.74 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **-0.0%** | **71.1 KB** | **71.1 KB** | **21.61 KB** | **21.6 KB** | **UMD_PROD**\nreact-test-renderer.development.js | 0.0% | -0.0% | 525.06 KB | 525.06 KB | 113.39 KB | 113.39 KB | NODE_DEV\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against ad810a82f1f1983fc529d3b84808b7883721f856\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 26aa1987ce823f54ebc90b2538184fefbc16b99a...ad810a82f1f1983fc529d3b84808b7883721f856</p>\n\n\n \n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactTestRenderer-dev.js | 0.0% | -0.0% | 552.11 KB | 552.11 KB | 116.54 KB | 116.54 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | -2.9% | -2.1% | 39.55 KB | 38.4 KB | 9.49 KB | 9.3 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **:small_red_triangle:+0.2%** | **:small_red_triangle:+0.2%** | **12.9 KB** | **12.92 KB** | **3.93 KB** | **3.94 KB** | **UMD_PROD**\nreact-test-renderer.development.js | 0.0% | -0.0% | 550.96 KB | 550.96 KB | 114.75 KB | 114.75 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **-0.0%** | **71.12 KB** | **71.12 KB** | **21.62 KB** | **21.62 KB** | **UMD_PROD**\nreact-test-renderer.development.js | 0.0% | -0.0% | 525.09 KB | 525.09 KB | 113.4 KB | 113.4 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **-0.0%** | **70.94 KB** | **70.94 KB** | **21.31 KB** | **21.3 KB** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against ad810a82f1f1983fc529d3b84808b7883721f856\n</p>\n"
] | 2020-02-28 23:44:07 | 2020-02-29 00:46:37 | 2020-02-29 00:35:53 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18185', 'html_url': 'https://github.com/facebook/react/pull/18185', 'diff_url': 'https://github.com/facebook/react/pull/18185.diff', 'patch_url': 'https://github.com/facebook/react/pull/18185.patch', 'merged_at': datetime.datetime(2020, 2, 29, 0, 35, 52)} | <!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.
Before submitting a pull request, please make sure the following is done:
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
9. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
10. If you haven't already, complete the CLA.
Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->
## Summary
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
Published a new version with @gaearon's PR https://github.com/NMinhNguyen/react-shallow-renderer/pull/15 as well as a few cosmetic changes (https://github.com/NMinhNguyen/react-shallow-renderer/pull/14 and https://github.com/NMinhNguyen/react-shallow-renderer/pull/21).
Bundle diff:
https://gist.github.com/NMinhNguyen/11fd4d00bb182e1cf8c8a007ef0df133
## Test Plan
<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. -->
CI | {'url': 'https://api.github.com/repos/facebook/react/issues/18185/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18185/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18184 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18184/labels{/name} | https://api.github.com/repos/facebook/react/issues/18184/comments | https://api.github.com/repos/facebook/react/issues/18184/events | https://github.com/facebook/react/pull/18184 | 573,052,243 | MDExOlB1bGxSZXF1ZXN0MzgxNjM1NTc2 | 18,184 | Refine isFiberSuspenseAndTimedOut | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18184/builds/12809) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 38cf7f689a35979018a4664d04491181d52e0c63:\n\n|Sandbox| Source |\n|--|--|\n|[infallible-hopper-x2yxd](https://codesandbox.io/s/infallible-hopper-x2yxd)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 38cf7f689a35979018a4664d04491181d52e0c63\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 38cf7f689a35979018a4664d04491181d52e0c63\n</p>\n",
"This might not throw but this still seems like it'll yield the wrong results. The assumptions are still wrong about isFiberSuspenseAndTimedOut",
"@sebmarkbage What are the correct assumptions? I can adjust accordingly."
] | 2020-02-28 22:58:35 | 2020-03-02 14:15:47 | 2020-03-02 14:15:43 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18184', 'html_url': 'https://github.com/facebook/react/pull/18184', 'diff_url': 'https://github.com/facebook/react/pull/18184.diff', 'patch_url': 'https://github.com/facebook/react/pull/18184.patch', 'merged_at': datetime.datetime(2020, 3, 2, 14, 15, 43)} | This changes the `isFiberSuspenseAndTimedOut` implementation based on Sebastian's feedback below:
> I think you might need to check for fiber.memoizedState.dehydrated === null here. If dehydrated is non-null it's a not-yet hydrated boundary. I believe child will be null in that case. | {'url': 'https://api.github.com/repos/facebook/react/issues/18184/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18184/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18183 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18183/labels{/name} | https://api.github.com/repos/facebook/react/issues/18183/comments | https://api.github.com/repos/facebook/react/issues/18183/events | https://github.com/facebook/react/issues/18183 | 573,018,935 | MDU6SXNzdWU1NzMwMTg5MzU= | 18,183 | useMutableSource and hydration | {'login': 'bvaughn', 'id': 29597, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False} | [{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | {'login': 'bvaughn', 'id': 29597.0, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False} | [{'login': 'bvaughn', 'id': 29597, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False}
{'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False}] | null | [
"How would the `registerMutableSourceForHydration` API in #18771 work with libraries that create mutable sources during render (ex. [this](https://codesandbox.io/s/react-redux-usemutablesource-eyxoe) or [this](https://codesandbox.io/s/blissful-babbage-24uu3))?\r\n\r\n(posting here so as not to clutter the PR)",
"This API wouldn't support a create-during-render pattern. You'd need to create the source at the module level. Otherwise a mutation might happen between the time when root hydration starts and when a particular component that reads from the source is hydrated.\r\n\r\nI don't see an alternative to this though, without e.g. tightening constraints on \"version\" to be serializable."
] | 2020-02-28 21:38:11 | 2020-05-21 23:00:47 | 2020-05-21 23:00:47 | CONTRIBUTOR | null | null | null | Follow up to PR #18000 and RFC https://github.com/reactjs/rfcs/pull/147
The new `useMutableSource` hook will need at least one additional API to be able to support server rendering and hydration. This API would likely be on the React root (the object returned by `createRoot`) and would enable mutable sources to have their versions eagerly captured before hydration begins.
##### How is the version used?
Currently a work-in-progress version of each mutable source is stored on the source itself. This version enables us to [avoid tearing before a source has been subscribed to](https://github.com/bvaughn/rfcs/blob/useMutableSource/text/0000-use-mutable-source.md#reading-from-a-source-before-subscribing). This version number is lazily populated (the first time a source is read during a given render).
##### How will the version be used during hydration?
In the case of server rendering, this version will need to be eagerly populated for every source so that we can detect tearing between the version of the source used for the server respond, and the version we will eventually read from while hydrating on the client.
##### How will this work?
One way to do this would be to store an array on each React root of mutable source and version number pairs. Each time we start (or resume) hydration, we can iterate through this array and use it to initialize the work-in-progress version for each source.
Once all outstanding hydration work is finished, we can clear the array. (Although this will require an additional change as we do not currently have a way to detect that we've finished all pending hydration work.) | {'url': 'https://api.github.com/repos/facebook/react/issues/18183/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18183/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18182 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18182/labels{/name} | https://api.github.com/repos/facebook/react/issues/18182/comments | https://api.github.com/repos/facebook/react/issues/18182/events | https://github.com/facebook/react/pull/18182 | 573,010,144 | MDExOlB1bGxSZXF1ZXN0MzgxNTk5NzU3 | 18,182 | [Native] Enable and remove targetAsInstance feature flag. | {'login': 'TheSavior', 'id': 249164, 'node_id': 'MDQ6VXNlcjI0OTE2NA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/249164?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/TheSavior', 'html_url': 'https://github.com/TheSavior', 'followers_url': 'https://api.github.com/users/TheSavior/followers', 'following_url': 'https://api.github.com/users/TheSavior/following{/other_user}', 'gists_url': 'https://api.github.com/users/TheSavior/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/TheSavior/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/TheSavior/subscriptions', 'organizations_url': 'https://api.github.com/users/TheSavior/orgs', 'repos_url': 'https://api.github.com/users/TheSavior/repos', 'events_url': 'https://api.github.com/users/TheSavior/events{/privacy}', 'received_events_url': 'https://api.github.com/users/TheSavior/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18182/builds/12587) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 633107cecc1b909e6da7197f5f8da857b8dbeac8:\n\n|Sandbox| Source |\n|--|--|\n|[serene-wu-jexdy](https://codesandbox.io/s/serene-wu-jexdy)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 4469700bb60ffd62caf112e47bcfa51afdd40e47...633107cecc1b909e6da7197f5f8da857b8dbeac8</p>\n\n\n \n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **260.62 KB** | **260.65 KB** | **45.23 KB** | **45.23 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.77 KB | 271.81 KB | 47.36 KB | 47.36 KB | RN_OSS_PROFILING\n**ReactFabric-prod.js** | **0.0%** | **:small_red_triangle:+0.1%** | **252.52 KB** | **252.61 KB** | **43.74 KB** | **43.77 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | 0.0% | 0.0% | 263.68 KB | 263.77 KB | 45.88 KB | 45.9 KB | RN_OSS_PROFILING\nReactFabric-dev.js | -0.1% | -0.1% | 616.62 KB | 616.05 KB | 133.12 KB | 132.94 KB | RN_FB_DEV\n**ReactFabric-prod.js** | **-0.1%** | **-0.2%** | **253.14 KB** | **252.77 KB** | **43.88 KB** | **43.8 KB** | **RN_FB_PROD**\nReactNativeRenderer-dev.js | 0.0% | 0.0% | 631.25 KB | 631.32 KB | 136.86 KB | 136.87 KB | RN_OSS_DEV\nReactFabric-profiling.js | -0.1% | -0.2% | 264.29 KB | 263.92 KB | 46.02 KB | 45.94 KB | RN_FB_PROFILING\nReactNativeRenderer-dev.js | -0.1% | -0.1% | 634.59 KB | 633.95 KB | 137.39 KB | 137.21 KB | RN_FB_DEV\n**ReactNativeRenderer-prod.js** | **-0.2%** | **-0.2%** | **261.2 KB** | **260.79 KB** | **45.34 KB** | **45.26 KB** | **RN_FB_PROD**\nReactNativeRenderer-profiling.js | -0.1% | -0.2% | 272.35 KB | 271.95 KB | 47.49 KB | 47.41 KB | RN_FB_PROFILING\nReactFabric-dev.js | 0.0% | 0.0% | 613.26 KB | 613.42 KB | 132.58 KB | 132.61 KB | RN_OSS_DEV\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 633107cecc1b909e6da7197f5f8da857b8dbeac8\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 633107cecc1b909e6da7197f5f8da857b8dbeac8\n</p>\n"
] | 2020-02-28 21:18:32 | 2020-02-28 21:45:48 | 2020-02-28 21:45:43 | MEMBER | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18182', 'html_url': 'https://github.com/facebook/react/pull/18182', 'diff_url': 'https://github.com/facebook/react/pull/18182.diff', 'patch_url': 'https://github.com/facebook/react/pull/18182.patch', 'merged_at': datetime.datetime(2020, 2, 28, 21, 45, 43)} | ## Summary
This has been enabled by default in React Native at Facebook and additional changes have landed that require this to be enabled. Removing the flag.
## Test Plan
Flag is already enabled at FB and verified. Jest, for the removal changes | {'url': 'https://api.github.com/repos/facebook/react/issues/18182/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18182/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18181 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18181/labels{/name} | https://api.github.com/repos/facebook/react/issues/18181/comments | https://api.github.com/repos/facebook/react/issues/18181/events | https://github.com/facebook/react/pull/18181 | 572,950,664 | MDExOlB1bGxSZXF1ZXN0MzgxNTQ5OTE4 | 18,181 | Change ReactVersion from CJS to ES module | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"`scripts/tasks/version-check.js` requires this file, yes. It's used by `scripts/release/utils.js`, which is used by `scripts/release/ci-update-package-versions` so...presumably this PR will fail?",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18181/builds/12581) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit e51d20526554333bf2d4c96f42d4d1f21e46ea9e:\n\n|Sandbox| Source |\n|--|--|\n|[eloquent-kowalevski-2dhw1](https://codesandbox.io/s/eloquent-kowalevski-2dhw1)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against e51d20526554333bf2d4c96f42d4d1f21e46ea9e\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against e51d20526554333bf2d4c96f42d4d1f21e46ea9e\n</p>\n",
"That script doesn't work on master because `/package.json` doesn't have a version. Fixed it."
] | 2020-02-28 19:13:30 | 2020-02-28 21:09:03 | 2020-02-28 21:09:03 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18181', 'html_url': 'https://github.com/facebook/react/pull/18181', 'diff_url': 'https://github.com/facebook/react/pull/18181.diff', 'patch_url': 'https://github.com/facebook/react/pull/18181.patch', 'merged_at': datetime.datetime(2020, 2, 28, 21, 9, 3)} | We need this to get rid of CJS in the build tool chain. | {'url': 'https://api.github.com/repos/facebook/react/issues/18181/reactions', 'total_count': 1, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 1, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18181/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18180 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18180/labels{/name} | https://api.github.com/repos/facebook/react/issues/18180/comments | https://api.github.com/repos/facebook/react/issues/18180/events | https://github.com/facebook/react/pull/18180 | 572,910,338 | MDExOlB1bGxSZXF1ZXN0MzgxNTE2NDg4 | 18,180 | Check in a forked version of object-assign only for UMD builds | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18180/builds/12574) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit c9ebd395d03075a3f696eb94715026281b1747c5:\n\n|Sandbox| Source |\n|--|--|\n|[cranky-herschel-lq6cy](https://codesandbox.io/s/cranky-herschel-lq6cy)| Configuration |\n",
"I'll just take one of our own implementations then. Probably easier than figuring out the banner and saves bytes.",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 4ee592e95a5f78daed575a047d47f74f046940f3...c9ebd395d03075a3f696eb94715026281b1747c5</p>\n\n\n \n## react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact.development.js | -1.5% | -2.2% | 103.46 KB | 101.88 KB | 25.4 KB | 24.86 KB | UMD_DEV\n**react.production.min.js** | **-4.6%** | **-4.7%** | **12.6 KB** | **12.02 KB** | **4.91 KB** | **4.68 KB** | **UMD_PROD**\nreact.profiling.min.js | -3.6% | -3.7% | 16.14 KB | 15.56 KB | 6.01 KB | 5.79 KB | UMD_PROFILING\n\n </details>\n \n\nReact: size: -4.6%, gzip: -4.7%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against c9ebd395d03075a3f696eb94715026281b1747c5\n</p>\n",
"\n<!--\n 0 failure: \n 1 warning: Failed to fetch b...\n \n 1 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n<table>\n <thead>\n <tr>\n <th width=\"50\"></th>\n <th width=\"100%\" data-danger-table=\"true\">Warnings</th>\n </tr>\n </thead>\n <tbody><tr>\n <td>:warning:</td>\n <td>Failed to fetch build artifacts for base commit: 4ee592e95a5f78daed575a047d47f74f046940f3</td>\n </tr>\n </tbody>\n</table>\n\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against c9ebd395d03075a3f696eb94715026281b1747c5\n</p>\n",
"Tested fixtured and ensured that it conditionally picks up the native version."
] | 2020-02-28 17:50:33 | 2020-02-28 19:14:10 | 2020-02-28 19:14:10 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18180', 'html_url': 'https://github.com/facebook/react/pull/18180', 'diff_url': 'https://github.com/facebook/react/pull/18180.diff', 'patch_url': 'https://github.com/facebook/react/pull/18180.patch', 'merged_at': datetime.datetime(2020, 2, 28, 19, 14, 10)} | This one uses ES modules so that we can inline it into UMD builds.
We could wait for object-assign to make an ESM export but we're going to remove this dependency and assume global polyfills in the next version anyway. However, we'd have to figure out how to keep the copyright header and it'll get counted in terms of byte size (even if other tooling removes it).
A lot of headache when we have our own implementation anyway. So I'll just use that.
Ours is not resilient to checking certain browser bugs but those browsers are mostly unused anyway. (Even FB breaks on them presumably.)
We also don't need to be resilient to Symbols since the way React uses it we shouldn't need to copy symbols | {'url': 'https://api.github.com/repos/facebook/react/issues/18180/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18180/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18179 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18179/labels{/name} | https://api.github.com/repos/facebook/react/issues/18179/comments | https://api.github.com/repos/facebook/react/issues/18179/events | https://github.com/facebook/react/pull/18179 | 572,898,697 | MDExOlB1bGxSZXF1ZXN0MzgxNTA2NjY0 | 18,179 | More event system cleanup and scaffolding | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18179/builds/12588) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 64dc9a477997983db3d694d3184a24434c6d907b:\n\n|Sandbox| Source |\n|--|--|\n|[blazing-frost-ihcob](https://codesandbox.io/s/blazing-frost-ihcob)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 4ee592e95a5f78daed575a047d47f74f046940f3...64dc9a477997983db3d694d3184a24434c6d907b</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | 0.0% | -0.0% | 405.88 KB | 405.94 KB | 73.87 KB | 73.87 KB | FB_WWW_PROFILING\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **19.99 KB** | **19.99 KB** | **7.39 KB** | **7.39 KB** | **UMD_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\nreact-dom.development.js | +0.1% | 0.0% | 881.76 KB | 882.42 KB | 194.35 KB | 194.42 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **9.99 KB** | **9.99 KB** | **3.37 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom.production.min.js** | **-0.0%** | **-0.0%** | **115.85 KB** | **115.83 KB** | **37.07 KB** | **37.06 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | -0.0% | -0.0% | 119.38 KB | 119.35 KB | 38.29 KB | 38.29 KB | UMD_PROFILING\nreact-dom.development.js | +0.1% | 0.0% | 839.2 KB | 839.77 KB | 191.97 KB | 192.05 KB | NODE_DEV\nreact-dom-server.node.development.js | 0.0% | 0.0% | 128.85 KB | 128.85 KB | 34.41 KB | 34.41 KB | NODE_DEV\n**react-dom.production.min.js** | **-0.0%** | **0.0%** | **115.93 KB** | **115.9 KB** | **36.44 KB** | **36.44 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.31 KB** | **20.31 KB** | **7.51 KB** | **7.51 KB** | **NODE_PROD**\nreact-dom.profiling.min.js | -0.0% | 0.0% | 119.61 KB | 119.58 KB | 37.5 KB | 37.5 KB | NODE_PROFILING\nReactDOM-dev.js | +0.1% | +0.1% | 936.53 KB | 937.05 KB | 208.59 KB | 208.74 KB | FB_WWW_DEV\n**ReactDOM-prod.js** | **0.0%** | **-0.0%** | **394.59 KB** | **394.65 KB** | **71.72 KB** | **71.71 KB** | **FB_WWW_PROD**\nReactDOMTesting-dev.js | +0.1% | +0.1% | 895.88 KB | 896.4 KB | 200.12 KB | 200.25 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **0.0%** | **-0.0%** | **381.65 KB** | **381.71 KB** | **69.44 KB** | **69.44 KB** | **FB_WWW_PROD**\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 127.63 KB | 127.63 KB | 34.15 KB | 34.15 KB | NODE_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 53.77 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\nReactDOMTesting-profiling.js | 0.0% | -0.0% | 381.65 KB | 381.71 KB | 69.44 KB | 69.44 KB | FB_WWW_PROFILING\n**react-dom-test-utils.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.94 KB** | **10.94 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | 0.0% | 137.46 KB | 137.46 KB | 35.02 KB | 35.03 KB | FB_WWW_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: 0.0%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 64dc9a477997983db3d694d3184a24434c6d907b\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 4ee592e95a5f78daed575a047d47f74f046940f3...64dc9a477997983db3d694d3184a24434c6d907b</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | -0.0% | -0.0% | 123.7 KB | 123.67 KB | 38.57 KB | 38.56 KB | NODE_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.91 KB | 58.91 KB | 14.7 KB | 14.7 KB | UMD_DEV\nReactDOM-dev.js | +0.1% | 0.0% | 895.08 KB | 895.6 KB | 200.12 KB | 200.19 KB | FB_WWW_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **10.27 KB** | **10.27 KB** | **3.5 KB** | **3.5 KB** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | 0.0% | 136.61 KB | 136.61 KB | 34.88 KB | 34.89 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 53.78 KB | 53.78 KB | 14.01 KB | 14.01 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.96 KB** | **10.96 KB** | **4.17 KB** | **4.17 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | +0.1% | 0.0% | 870.29 KB | 870.81 KB | 195 KB | 195.08 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **0.0%** | **0.0%** | **368.76 KB** | **368.82 KB** | **67.41 KB** | **67.42 KB** | **FB_WWW_PROD**\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 49.56 KB | 49.56 KB | 13.52 KB | 13.52 KB | NODE_DEV\nReactDOMTesting-profiling.js | 0.0% | 0.0% | 368.76 KB | 368.82 KB | 67.41 KB | 67.42 KB | FB_WWW_PROFILING\nreact-dom-server.node.development.js | 0.0% | 0.0% | 130.36 KB | 130.36 KB | 34.63 KB | 34.63 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\nreact-dom.development.js | +0.1% | 0.0% | 910.44 KB | 911.11 KB | 199.28 KB | 199.35 KB | UMD_DEV\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 136.12 KB | 136.12 KB | 34.78 KB | 34.78 KB | UMD_DEV\n**react-dom.production.min.js** | **-0.0%** | **0.0%** | **119.75 KB** | **119.72 KB** | **38.22 KB** | **38.22 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | -0.0% | 0.0% | 123.4 KB | 123.37 KB | 39.39 KB | 39.4 KB | UMD_PROFILING\nreact-dom.development.js | +0.1% | 0.0% | 866.69 KB | 867.27 KB | 196.87 KB | 196.93 KB | NODE_DEV\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 129.14 KB | 129.14 KB | 34.37 KB | 34.37 KB | NODE_DEV\n**react-dom.production.min.js** | **-0.0%** | **0.0%** | **119.9 KB** | **119.87 KB** | **37.45 KB** | **37.45 KB** | **NODE_PROD**\n**ReactDOM-prod.js** | **0.0%** | **0.0%** | **370.74 KB** | **370.8 KB** | **67.5 KB** | **67.51 KB** | **FB_WWW_PROD**\n**ReactDOMServer-prod.js** | **0.0%** | **0.0%** | **46.68 KB** | **46.68 KB** | **10.84 KB** | **10.85 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | 0.0% | 0.0% | 381.95 KB | 382.01 KB | 69.63 KB | 69.63 KB | FB_WWW_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.87 KB | 55.87 KB | 14.47 KB | 14.47 KB | NODE_DEV\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.1% | 3.35 KB | 3.35 KB | 1.27 KB | 1.27 KB | UMD_DEV\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: 0.0%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 64dc9a477997983db3d694d3184a24434c6d907b\n</p>\n"
] | 2020-02-28 17:29:46 | 2020-03-02 10:59:12 | 2020-03-02 10:59:08 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18179', 'html_url': 'https://github.com/facebook/react/pull/18179', 'diff_url': 'https://github.com/facebook/react/pull/18179.diff', 'patch_url': 'https://github.com/facebook/react/pull/18179.patch', 'merged_at': datetime.datetime(2020, 3, 2, 10, 59, 8)} | This PR is another step towards adding a forked modern event system that uses roots. Before we get to that stage, we need to do some cleanup and add some parts of the scaffolding.
Specifically, this PR does the following:
- fork `ensureListeningTo` to accept modern/legacy events
- wrap `legacyTrapBubbledEvent` calls in a flag, as we won't do these in the modern event system (we use the capture phase instead).
- add `dispatchEventForLegacyPluginEventSystem` calls at `DOMEventListener` behind the flag, as the entrance point for dispatching modern event system events.
- add `listenToTopLevelEvent` calls at `ReactDOMEventReplaying` behind the flag, as the entrance point for replaying modern event system events.
- add `DOMModernPluginEventSystem` module. This doesn't do much for now, the rest of the code and tests will come in a follow up PR. It does register events accordingly however.
- various small changes to Flow types and cleanup of DOMEventListener
Note: there should be no functional changes to the existing legacy event system. | {'url': 'https://api.github.com/repos/facebook/react/issues/18179/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18179/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18178 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18178/labels{/name} | https://api.github.com/repos/facebook/react/issues/18178/comments | https://api.github.com/repos/facebook/react/issues/18178/events | https://github.com/facebook/react/issues/18178 | 572,818,021 | MDU6SXNzdWU1NzI4MTgwMjE= | 18,178 | Bug: too hard to fix "Cannot update a component from inside the function body of a different component." | {'login': 'finom', 'id': 1082083, 'node_id': 'MDQ6VXNlcjEwODIwODM=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1082083?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/finom', 'html_url': 'https://github.com/finom', 'followers_url': 'https://api.github.com/users/finom/followers', 'following_url': 'https://api.github.com/users/finom/following{/other_user}', 'gists_url': 'https://api.github.com/users/finom/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/finom/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/finom/subscriptions', 'organizations_url': 'https://api.github.com/users/finom/orgs', 'repos_url': 'https://api.github.com/users/finom/repos', 'events_url': 'https://api.github.com/users/finom/events{/privacy}', 'received_events_url': 'https://api.github.com/users/finom/received_events', 'type': 'User', 'site_admin': False} | [{'id': 710375792, 'node_id': 'MDU6TGFiZWw3MTAzNzU3OTI=', 'url': 'https://api.github.com/repos/facebook/react/labels/Type:%20Discussion', 'name': 'Type: Discussion', 'color': 'fef2c0', 'default': False, 'description': None}] | closed | true | null | [] | null | [
"I wish we had added this warning earlier. I'm sorry we didn't. It was an oversight with the introduction of Hooks. I believe this must be caused by newer code that uses Hooks, because there was already the same warning for classes much earlier so any earlier code would've already seen this warning.\r\n\r\nNote that this will likely start hard failing in future versions of React. Intentional or otherwise (we've had a lot of bugs with this pattern). So regardless, you might end up getting stuck on an old version. If it's not possible to fix it, I'd recommend pinning to an older version of React.\r\n\r\nHowever, that said, we want to help you and make it as easy as possible to fix these, including seeing if we can get help from library authors to publish fixed versions.\r\n\r\nIf you expand the little `>` arrow in the Chrome console you should also see an additional Stack trace (in addition to the Component stack in your screen shot). Can you post that too? That should show you the exact callsite that is causing a side-effect in render.",
"With me this appears when i use formik \r\n\r\n![image](https://user-images.githubusercontent.com/1703020/75614021-cb812980-5b12-11ea-8a6e-a38f4cd6aeef.png)\r\n",
"@sebmarkbage thank you for the response. The stacktrace appearing after clicking > is ridiculous. It contains 200+ items!\r\n\r\nI was going to paste it there or give a link to pastebin but tried a different direction. I walked thru Github issues of some of used libraries and found out that one of suspects is redux-form: https://github.com/redux-form/redux-form/issues/4619. I hope that's the only library which causes the errors and I'm going to wait for a fix before upgrading React. \r\n\r\nBut still, I'd ask to not close the this issue and I propose other developers to mention here libraries which also cause these errors.",
"@RodolfoSilva are you sure that it is caused by formik? If yes, can you please create an issue there and post a link to it here? I'm going to create a list of such issues at the beginning of my first message if the list is going to contain more than one item.",
"This really needs to be addressed ASAP. It makes upgrading impossible. The error trace is pretty much impossible.",
"Hm. I wonder if describing which line to look for in the error message would help.\r\n\r\nIn this case the first line to look for is the line after `dispatchAction`. That should be the thing that calls into React.\r\n\r\n@RodolfoSilva can you post the source of `FormItemInput.js`, if it's something you can share? That seems to be calling dispatch or setState on line 71.",
"I think it is imperative that this error message be modified to include exactly which line of code is causing the error. It's almost impossible to pinpoint whether it is local code or library code that's causing the issue. External librairies ~~libraries like react-redux and react-router are most likely the culprit~~ may very well be the culprits yet it is impossible to easily determine that.",
"I'm pretty sure that React-Redux is not at fault here, but agreed that the error message and component stack make it kind of hard to know what's actually going on.",
"I face the same problem with Redux-form!",
"I have the same problem and I'm seeing that the warning is showing the **first time** that i write in my **redux field** or when i **clear all** it",
"I have that problem too, this is my component:\r\n\r\n`const [price, setPrice] = useState(0);\r\n\r\nconst updatePrice = (newPrice) => {\r\n setPrice(newPrice)\r\n}\r\n< CardContainer onPriceUpdated={updatePrice} ></ CardContainer >\r\n`\r\n\r\n\r\nSo, in this case my CardContainer component, notify to the parent component when the price is updated and the parent component renders the new prince.\r\nSo i guess React is warning me that i'm trying to update the state of a component using the function of other component.\r\nI'm new in react, so i'm not sure if this is a React pattern or is in fact a bug.\r\n\r\nIf you guys have any suggestion to solve this warning i would appreciate it``",
"@l0gicgate \r\n\r\n>I think it is imperative that this error message be modified to include exactly which line of code is causing the error.\r\n\r\nThere are limits to what we can do in JavaScript. But **all the information is in the stack you see in the browser**. All you need to do is to skip the lines that are inside React.\r\n\r\nTo see the JavaScript stack, you need to **click on a small arrow next to the error message**.\r\n\r\nFor example, look at this screenshot from earlier:\r\n\r\n![75614021-cb812980-5b12-11ea-8a6e-a38f4cd6aeef](https://user-images.githubusercontent.com/810438/76101765-daf6eb80-5fc6-11ea-964b-5a68de4757e6.png)\r\n\r\nI appreciate it's a bit annoying to dig through the stack, but it shouldn't be that hard to skip the first several frames. The very next frame is the source of the problem. In this case, it seems like something inside the Formik library. So you can file an issue with it.",
"@martinezwilmer This example is too small to help. Create a sandbox please.",
"To the future commenters. I understand seeing a new warning is frustrating. But it points out legitimate issues that **are likely causing bugs in your code**. We would very much appreciate if you could refrain from expressing sarcasm and annoyance.\r\n\r\nIf you can't understand where it's coming from in the stack traces, please post screenshots or create reproducing sandboxes and we'll try to help. Most of these are probably coming from a few libraries, so the most productive thing to do is to reduce these cases and then file issues with those libraries.\r\n\r\nThank you all.",
"Hard to find the precise line concerned by the warning here:\r\n\r\n@gaearon do you again have one tip about it ?\r\n\r\n![image](https://user-images.githubusercontent.com/25119847/76173268-4941d680-619e-11ea-9f11-542ef53eec86.png)\r\n",
"> Hard to find the precise line concerned by the warning here:\r\n\r\nWhat makes it hard? As I noted above it’s the first line that doesn’t say “react” on the right side. In this case, it’s `connectAdvanced` from Redux. Please file an issue in React Redux so that the maintainers have a chance to look at this. ",
"As I said upthread, I would be _very_ surprised if whatever's happening here is an issue with React-Redux.\r\n\r\nThat said, I'm also not even sure exactly what triggers this message in the first place. I half-get what the error message is saying, but what kind of app code pattern would actually be an example of that behavior?",
"I ran into this recently and the fix was wrapping `setState` handler call sites in `useEffect`, like so: https://github.com/airbnb/lunar/commit/db08613d46ea21089ead3e7b5cfff995f15c69a7#diff-1c3bdd397b1ce5064142488877045306R56 (`onChange` and `onSubmit` use `setState` higher up the chain).\r\n\r\n@martinezwilmer Where is `onPriceUpdated` being called? Maybe try wrapping it in `useEffect`?",
"The same issue seems to be happening for [`urql`](https://github.com/FormidableLabs/urql)\r\n\r\nWe are using `use-subscription` + wonka (for streams) to orchestrate our updates, however an update can come in synchronously. [Here](https://codesandbox.io/s/cranky-silence-stthw) we have already fetched the `todos` so if we click the `Open` button the result should just instantly pop up, however this seems to trigger the following error.\r\n\r\n![image](https://user-images.githubusercontent.com/17125876/76353800-add17280-6311-11ea-8793-621b18da24f6.png)\r\n\r\nIn our case this is intended, we can't just show `fetching: true` for a sync result, that would result in jumpy interfaces.",
"This is starting to crop up more and more in third party libraries now: [`urql`](https://github.com/FormidableLabs/urql/issues/600), [Apollo](https://github.com/apollographql/react-apollo/issues/3863).\r\n\r\nI ran into this and for several hours I assumed the problem was in my code. The condensed stacktrace points at my components, and it's not unusual for me to see third party libraries in the expanded stacktrace when I _did_ explicitly trigger an error. From my (albeit limited) research into this particular warning, it seems that most developers are not causing this issue themselves, but rather depending on code that does. Usually it's good practice to assume it isn't a bug upstream but when it is an upstream bug, wasting time tracking down a problem in your code that doesn't exist is rather frustrating. Is there anything React can do to help an average user determine if it was code they wrote, or code they depend upon that caused the issue?\r\n\r\nOne thing I note from the Apollo issue is:\r\n>The warning's stacktrace is showing the component that initialed the changes, not the one that gets re-renderd [sic] by those changes\r\n\r\nIf this is correct, can React give more information here? Perhaps telling us both the initiating component and the components that it caused to be updated?",
"Like @hugo , I encountered this when testing [a new Ionic application](https://ionicframework.com/docs/react):\r\n1. `npx ionic start demo sidemenu --type=react`\r\n2. `react-scripts test`\r\n\r\nIndeed, the cause is buried in the middle and bottom of the stack trace.\r\n\r\n```\r\nconsole.error node_modules/react-dom/cjs/react-dom.development.js:88\r\n Warning: Cannot update a component from inside the function body of a different component.\r\n in Route (at App.tsx:37)\r\n in View (created by StackManagerInner)\r\n in ViewTransitionManager (created by StackManagerInner)\r\n in ion-router-outlet (created by IonRouterOutlet)\r\n in IonRouterOutlet (created by ForwardRef(IonRouterOutlet))\r\n in ForwardRef(IonRouterOutlet) (created by StackManagerInner)\r\n in StackManagerInner (created by Context.Consumer)\r\n in Unknown (created by Component)\r\n in Component (created by ForwardRef(IonRouterOutlet))\r\n in ForwardRef(IonRouterOutlet) (at App.tsx:36)\r\n in ion-split-pane (created by IonSplitPane)\r\n in IonSplitPane (created by ForwardRef(IonSplitPane))\r\n in ForwardRef(IonSplitPane) (at App.tsx:34)\r\n in NavManager (created by RouteManager)\r\n in RouteManager (created by Context.Consumer)\r\n in RouteManager (created by IonReactRouter)\r\n in Router (created by BrowserRouter)\r\n in BrowserRouter (created by IonReactRouter)\r\n in IonReactRouter (at App.tsx:33)\r\n in ion-app (created by IonApp)\r\n in IonApp (created by ForwardRef(IonApp))\r\n in ForwardRef(IonApp) (at App.tsx:32)\r\n in App (at App.test.tsx:6)\r\n```\r\n\r\nThis issue was the closest I could find regarding this problem.",
"We found a specific pattern that causes this issue with mobx over in https://github.com/mobxjs/mobx-react/issues/846",
"@sebmarkbage I can no longer reproduce this problem. We have update some libraries and the problems over.",
"@jgoux we seem to face the same problem @Clovis ^^ Spotted",
"I started getting this error after the updating react to `react 16.13.0`. The issue is pretty clear since one of my components is updating another after a specific action is done. However, not sure why would this throw a warning. Any suggestion on how to get around this?",
"@gaearon thanks for the details on how to debug from the stack, I personally wouldn't have been able to figure out where this error was coming from if you had not given that example. 🙏 ",
"Not sure if my issue is related however, I'm attempting to update the state of my form component but whenever I try to add an onChange handler, it keeps giving me this error. Mind you, I'm using react-jsonschema-form and imported the Form component and I'm using it's onChange property to update the state.. ",
"For me, this is the pattern that causes the issue.\r\n\r\n![image](https://user-images.githubusercontent.com/4944422/76449944-34c23180-638a-11ea-8baf-0ae96fbdc5fb.png)\r\n\r\nThere may be a way around this. But the console log did point me straight to line 385\r\n",
"I'm new to react but I had code like this: \r\n\r\n```jsx\r\nimport React, { useState } from \"react\";\r\n\r\nfunction Home() {\r\n const [mobileNavOpen, setMobileNavOpen] = useState(false);\r\n return (\r\n <div>\r\n <button\r\n onClick={(): void => setMobileNavOpen(true)}\r\n type=\"button\"\r\n className=\"btn\"\r\n >\r\n X\r\n </button>\r\n {mobileNavOpen && <MobileNav setMobileNavOpen={setMobileNavOpen}/>}\r\n </div>\r\n );\r\n}\r\n\r\nfunction MobileNav() {\r\n return (\r\n <div>\r\n <button\r\n onClick={setMobileNavOpen(false)} //problem here\r\n type=\"button\"\r\n className=\"btn\"\r\n >\r\n X\r\n </button>\r\n </div>\r\n );\r\n}\r\n\r\nexport default Home;\r\n```\r\n\r\nWhich resulted in: ```Cannot update a component from inside the function body of a different component.```\r\n\r\nAll I had to do is add an arrow function to setMobileNavOpen in MobileNav like so:\r\n\r\n```jsx\r\nimport React, { useState } from \"react\";\r\n\r\nfunction Home() {\r\n const [mobileNavOpen, setMobileNavOpen] = useState(false);\r\n return (\r\n <div>\r\n <button\r\n onClick={(): void => setMobileNavOpen(true)}\r\n type=\"button\"\r\n className=\"btn\"\r\n >\r\n X\r\n </button>\r\n {mobileNavOpen && <MobileNav setMobileNavOpen={setMobileNavOpen}/>}\r\n </div>\r\n );\r\n}\r\n\r\nfunction MobileNav() {\r\n return (\r\n <div>\r\n <button\r\n onClick={(): void => setMobileNavOpen(false)} //fixes problem\r\n type=\"button\"\r\n className=\"btn\"\r\n >\r\n X\r\n </button>\r\n </div>\r\n );\r\n}\r\n\r\nexport default Home;\r\n```\r\n\r\nAnd that fixes the problem, hope this helps someone!",
"> I'm new to react but I had code like this:\r\n> \r\n> ```js-jsx\r\n> import React, { useState } from \"react\";\r\n> \r\n> function Home() {\r\n> const [mobileNavOpen, setMobileNavOpen] = useState(false);\r\n> return (\r\n> <div>\r\n> <button\r\n> onClick={(): void => setMobileNavOpen(true)}\r\n> type=\"button\"\r\n> className=\"btn\"\r\n> >\r\n> X\r\n> </button>\r\n> {mobileNavOpen && <MobileNav setMobileNavOpen={setMobileNavOpen}/>}\r\n> </div>\r\n> );\r\n> }\r\n> \r\n> function MobileNav() {\r\n> return (\r\n> <div>\r\n> <button\r\n> onClick={setMobileNavOpen(false)} //problem here\r\n> type=\"button\"\r\n> className=\"btn\"\r\n> >\r\n> X\r\n> </button>\r\n> </div>\r\n> );\r\n> }\r\n> \r\n> export default Home;\r\n> ```\r\n> \r\n> Which resulted in: `Cannot update a component from inside the function body of a different component.`\r\n> \r\n> All I had to do is add an arrow function to setMobileNavOpen in MobileNav like so:\r\n> \r\n> ```js-jsx\r\n> import React, { useState } from \"react\";\r\n> \r\n> function Home() {\r\n> const [mobileNavOpen, setMobileNavOpen] = useState(false);\r\n> return (\r\n> <div>\r\n> <button\r\n> onClick={(): void => setMobileNavOpen(true)}\r\n> type=\"button\"\r\n> className=\"btn\"\r\n> >\r\n> X\r\n> </button>\r\n> {mobileNavOpen && <MobileNav setMobileNavOpen={setMobileNavOpen}/>}\r\n> </div>\r\n> );\r\n> }\r\n> \r\n> function MobileNav() {\r\n> return (\r\n> <div>\r\n> <button\r\n> onClick={(): void => setMobileNavOpen(false)} //fixes problem\r\n> type=\"button\"\r\n> className=\"btn\"\r\n> >\r\n> X\r\n> </button>\r\n> </div>\r\n> );\r\n> }\r\n> \r\n> export default Home;\r\n> ```\r\n> \r\n> And that fixes the problem, hope this helps someone!\r\n\r\nYour example is actually one of the early mistakes people make with react. I'm not sure it's exactly the same issue that's being discussed here. Your line here: `onClick={setMobileNavOpen(false)` is calling the function during the button tender, not on click. That's why wrapping it in a arrow function fixes it. "
] | 2020-02-28 15:15:25 | 2020-03-30 23:33:27 | 2020-03-18 00:07:15 | NONE | resolved | null | null | # Note: React 16.13.1 fixed some cases where this was overfiring. If upgrading React and ReactDOM to 16.13.1 doesn't fix the warning, read this: https://github.com/facebook/react/issues/18178#issuecomment-595846312
----
React version:
16.13.0
## Steps To Reproduce
1. Build a time machine.
2. Go to the year 2017.
3. Build a huge application of 10K lines of code.
4. Get 80 (!) dependencies at package.json file including ones that become no longer maintained.
5. Update React to the latest version at February 27, 2020.
6. Get tons of errors that you don't know how to fix.
7. Tell your client that fixes are going to take unknown time and it's going to cost $$$ + days or weeks of investigation or we're going to get stuck with the outdated version of React and related libraries forever which will cost more $$$ but later.
Being serious, the business I work for isn't interested on that at all. Obviously I'd never made it happen to get such warnings to appear if I'd get them earlier. Currently that's impossibly hard to make the errors to be fixed because I get them at many different cases and with a huge stack trace. I tried to fix at least one of the appearing errors and it already took a lot of time. I tried to debug some of used libraries but got no luck.
Just one example:
![image](https://user-images.githubusercontent.com/1082083/75559100-8fcf5c80-5a4b-11ea-8173-4f0a62cc5de3.png)
There we can notice the use of an outdated react-router, an outdated redux-connect (which I had to put to the project source to fix errors of outdated `componentWillReceiveProps` method), some HOCs created by recompose etc. It isn't just a simple virtual DOM tree where I can walk thru components developed by me and search by `setState` string to fix the bug, that's way more complicated than that.
Please make an "UNSAFE" option to disable this error or provide a simpler way to find where the error is thrown 🙏
| {'url': 'https://api.github.com/repos/facebook/react/issues/18178/reactions', 'total_count': 29, '+1': 26, '-1': 0, 'laugh': 3, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18178/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18177 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18177/labels{/name} | https://api.github.com/repos/facebook/react/issues/18177/comments | https://api.github.com/repos/facebook/react/issues/18177/events | https://github.com/facebook/react/issues/18177 | 572,801,992 | MDU6SXNzdWU1NzI4MDE5OTI= | 18,177 | Bug: hook return setter losts its effect when assign it to some obj after click its dom node in react-dev-tool | {'login': 'fantasticsoul', 'id': 7334950, 'node_id': 'MDQ6VXNlcjczMzQ5NTA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/7334950?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/fantasticsoul', 'html_url': 'https://github.com/fantasticsoul', 'followers_url': 'https://api.github.com/users/fantasticsoul/followers', 'following_url': 'https://api.github.com/users/fantasticsoul/following{/other_user}', 'gists_url': 'https://api.github.com/users/fantasticsoul/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/fantasticsoul/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/fantasticsoul/subscriptions', 'organizations_url': 'https://api.github.com/users/fantasticsoul/orgs', 'repos_url': 'https://api.github.com/users/fantasticsoul/repos', 'events_url': 'https://api.github.com/users/fantasticsoul/events{/privacy}', 'received_events_url': 'https://api.github.com/users/fantasticsoul/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"I just assign the latest setter to fnWrapper.setCount in every render period but I don't know why it does's work as I imagine.",
"What you're doing in the hook above - setting properties on an external object `fnWrapper` during render, or mutating a ref like `f` during render - is a **side effect** and [**is not safe to do**](https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects). Side effects belong inside of an effect hook like [`useEffect`](https://reactjs.org/docs/hooks-reference.html#useeffect).\r\n\r\n[As I mentioned on the previous issue about this](https://github.com/facebook/react/issues/16519#issuecomment-538059486):\r\n> DevTools shallowly re-renders components that use hooks in order to build up the map of hook-to-value to show in the selected properties panel. ([Read more about this here if you're interested.](https://github.com/facebook/react/blob/master/packages/react-devtools/OVERVIEW.md#inspecting-hooks))\r\n\r\n> When it does this re-rendering, it temporarily overrides the React's built-in hooks with [a version that collects this metadata](https://github.com/facebook/react/blob/master/packages/react-debug-tools/src/ReactDebugHooks.js). In your case, since you're mutating a prototype function every render, the more recent render (by DevTools) causes you to override it with the injected no-op value so that future calls don't actually update state.\r\n\r\n",
"@bvaughn documentation clearly says:\r\n\r\n> React guarantees that setState function identity is stable and won’t change on re-renders.\r\n\r\nAnd it seems that Dev Tools break this guarantee\r\n\r\n",
"I think that's a misunderstanding of the quoted documentation. That quote means that the `setState` function is stable between renders, so it won't break e.g. `React.pure` memoization and it won't cause e.g. `useMemo` hooks to be invalidated. In other words, the documentation is a comment on the general performance characteristics.\r\n\r\nDevTools shallowly re-renders a component [as mentioned before on this issue and the previous one](https://github.com/facebook/react/blob/master/packages/react-devtools/OVERVIEW.md#inspecting-hooks). It does not run any effects callbacks, so no side effects will be run. It does not re-run `useMemo` or `useCallback` functions, so a temporary change in the dispatch won't impact them.\r\n\r\nIf you're using a non-hooks based memoization (e.g. `memoize-one`) it *would* invalidate it, but I would argue this is okay for a few reasons:\r\n* Using developer tools (whether React DevTools or e.g. browser's built-in profiling tools) typically adds some additional overhead. This is acceptable because the scope is limited and end users won't experience it.\r\n* So long as you don't break the rules of React and have side effects in render, what DevTools does should, at worst, cause a little extra CPU work. It won't be persisted anywhere. (DevTools rendering is shallow, so any temporarily invalidated calculations won't be passed further down the tree.)\r\n\r\nDevTools *could* pass the actual `setState` function during the shallow render, but if the component being rendered called it- it would schedule actual work with React and cause a potentially observable change in application behavior. DevTool's current approach is unobservable to the larger app, **provided you don't have side effects** which would [already be problematic for other reasons, not counting DevTools](https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects).",
"Documentation explicitly allows assigning to ref.current for lazy initialisation which makes it possible to observe invalid setState",
"> Documentation explicitly allows assigning to ref.current for lazy initialisation which makes it possible to observe invalid setState\r\n\r\nNo, it does not- because the ref will **always** already be assigned in that case. (DevTools will **never** render a component for the first time.)",
"Yes, that’s probably the case in practice, but it is never said in the docs that you MUST assign ref value during the first render. In theory it is possible that is for some reason assigned during DevTools render. That would probably require reading some external mutable value, which is not recommended, but people do it all the time",
"> but it is never said in the docs that you MUST assign ref value during the first render\r\n\r\nMaybe. The docs only suggest writing to the ref during render for lazy initialization. I would argue that there's no reason to store a stable function like `dispatch`/`setState` in a ref to begin with though.\r\n\r\nReading from an external, mutable value is also an impure/unsafe thing to do. I'm not sure what point you're making when you say that \"people do it all the time\".",
"The point is that people (myself included) often break React rules thinking that they know what they are doing. \r\n\r\nSide effects in render is a good example. You are clearly discouraged to do so, but React says that setState is guaranteed to not changed, so you would assume that is ok to do that. Except it is not, and figuring out why can be difficult. The fact that DevTools disable console to hide this render makes it even more confusing. \r\n\r\nAll I’m saying that docs should mention that fact that you might observe alternative setState functions if you break React rules, or something like this.",
"> The point is that people (myself included) often break React rules thinking that they know what they are doing.\r\n\r\n**Don't break the rules. They exist for a reason.**\r\n\r\nWe (React team) do spend a lot of time trying to highlight why breaking the rules is bad- (including responding to GitHub issues like this) but it's not realistic for us to highlight **all** of the things can go wrong.\r\n\r\nThe docs are open source. If you think this is a case where the warnings could be improved, please feel free to submit a PR: http://github.com/reactjs/reactjs.org\r\n\r\nI think this discussion has probably ran full course now :smile: I'm going to bow out."
] | 2020-02-28 14:48:20 | 2020-03-02 17:38:34 | 2020-02-28 17:18:58 | NONE | null | null | null | React version: 16.12.0
## description
hook return setter to lost its effect when assign it to some obj after click its dom node in react-dev-tool. [prev closed issue](https://github.com/facebook/react/issues/16519)
## Steps To Reproduce
1. open react-dev-tool
2. click the dom node in the panel
3. input content at input box1 or input box2
[here is online demo](https://codesandbox.io/s/test-react-dev-tool-bug-kpb1y)
Link to code example:
```js
import React, { useState, useCallback, useRef } from "react";
const fnWrapper = { setCount: () => {} };
export default function DemoCounter() {
console.log("render DemoCounter");
const m = useState(0);
const f = useRef(null);
// this is not ok
// fnWrapper.setCount = s => {
// console.log('fnWrapper.setCount');
// m[1](s);
// }
// this is not ok also
// fnWrapper.setCount = useCallback((s)=>{
// m[1](s)
// }, [m]);
fnWrapper.setCount = m[1];//not ok
f.current = m[1];//not ok
console.log(fnWrapper.setCount === m[1]);
if (
typeof fnWrapper.setCount !== "function" ||
typeof f.current !== "function"
) {
console.log(typeof fnWrapper.setCount);
console.log(fnWrapper.setCount);
alert("wow");
}
return (
<div style={{ border: "1px solid blue", margin: "8px" }}>
count: {m[0]} <br />
<h3>1 and 2 become bad after click the dom node in react-dev-tool</h3>
{/* this does not work if I open react-dev-tool and click the dom node */}
<input
value={m[0]}
onChange={e => fnWrapper.setCount(e.currentTarget.value)}
/>
1 not ok
<br />
{/* this does not work if I open react-dev-tool and click the dom node */}
<input value={m[0]} onChange={e => f.current(e.currentTarget.value)} />
2 not ok
<br />
{/* this always works not matter I open react-dev-tool and click the dom node or not */}
<input value={m[0]} onChange={e => m[1](e.currentTarget.value)} />3 ok!
</div>
);
}
```
## The current behavior
input 1 and input 2 's onChange event doesn't work any more after I clicked the dom node in react-dev-tool panel .
## The expected behavior
The onChange event works well no matter I clicked the dom node in react-dev-tool panel or not. | {'url': 'https://api.github.com/repos/facebook/react/issues/18177/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18177/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18176 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18176/labels{/name} | https://api.github.com/repos/facebook/react/issues/18176/comments | https://api.github.com/repos/facebook/react/issues/18176/events | https://github.com/facebook/react/issues/18176 | 572,677,472 | MDU6SXNzdWU1NzI2Nzc0NzI= | 18,176 | [eslint-plugin-react-hooks] Bug: exhaustive-deps not working with function declaration | {'login': 'yuriy-sng', 'id': 60257988, 'node_id': 'MDQ6VXNlcjYwMjU3OTg4', 'avatar_url': 'https://avatars.githubusercontent.com/u/60257988?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/yuriy-sng', 'html_url': 'https://github.com/yuriy-sng', 'followers_url': 'https://api.github.com/users/yuriy-sng/followers', 'following_url': 'https://api.github.com/users/yuriy-sng/following{/other_user}', 'gists_url': 'https://api.github.com/users/yuriy-sng/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/yuriy-sng/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/yuriy-sng/subscriptions', 'organizations_url': 'https://api.github.com/users/yuriy-sng/orgs', 'repos_url': 'https://api.github.com/users/yuriy-sng/repos', 'events_url': 'https://api.github.com/users/yuriy-sng/events{/privacy}', 'received_events_url': 'https://api.github.com/users/yuriy-sng/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"Never do this. There is no good reason to do this, but it is very hard to make `exhaustive-deps` support this pattern",
"> Never do this. There is no good reason to do this, but it is very hard to make `exhaustive-deps` support this pattern\r\n\r\nThis is good point.\r\nFor effect reusage it would be better to use custom hooks.",
"> the code is coupled to the component and is not really reusable \r\n\r\nThis shouldn't be matter. You can have your hook unexported in the same file, with a meaningful name.",
"_Sorry for deleting the previous comment, wrong account._\r\n\r\nThe effects weren't meant to be reused, the goal was to name them, in order to avoid having to read the impl to understand what they do.\r\n\r\nI preffered this approach over custom hooks because the code is coupled to the component and is not really reusable.",
"> > the code is coupled to the component and is not really reusable\r\n> \r\n> This shouldn't be matter. You can have your hook unexported in the same file, with a meaningful name.\r\n\r\nI guess that could be the solution although it feels weird reading `useFoo()` without it being an app-wide hook.",
"Consider this: you often extract some code into components, although it is used only in one place. You do this to make it easier to read and reason about code, not for reuse. The same applies to hooks.",
"This is a known bug https://github.com/facebook/react/issues?q=is%3Aopen+is%3Aissue+label%3A%22Component%3A+ESLint+Rules%22\r\n\r\nA fix would be welcome!",
"oops I meant https://github.com/facebook/react/issues/16573"
] | 2020-02-28 10:49:38 | 2020-03-03 17:19:07 | 2020-03-03 17:16:27 | NONE | null | null | null | <!--
Please provide a clear and concise description of what the bug is. Include
screenshots if needed. Please test using the latest version of the relevant
React packages to make sure your issue has not already been fixed.
-->
When extracting a `useEffect` callback from inline to a funcion declaration, the `exhaustive-deps` rule stops showing warnings related to the referenced function
React version: `16.12.0`
eslint-plugin-react-hooks version: `1.7.0`
## Steps To Reproduce
1. Add a basic `useEffect` code which doesn't declare one of the dependencies in the array (`tmp`)
```jsx
const [tmp, setTmp] = useState("");
useEffect(() => {
console.log(tmp);
}, []);
```
2. ESLint shows the `exhaustive-deps` warning
3. Extract the `useEffect` callback to a function declaration
```jsx
const [tmp, setTmp] = useState("");
function sideEffect() {
console.log(tmp);
}
useEffect(sideEffect, []);
```
<!--
Your bug will get fixed much faster if we can run your code and it doesn't
have dependencies other than React. Issues without reproduction steps or
code examples may be immediately closed as not actionable.
-->
Link to code example: https://codesandbox.io/s/summer-sunset-oie9s
<!--
Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
repository on GitHub, or provide a minimal code example that reproduces the
problem. You may provide a screenshot of the application if you think it is
relevant to your bug report. Here are some tips for providing a minimal
example: https://stackoverflow.com/help/mcve.
-->
## The current behavior
ESLint plugin does not show the `exhaustive-deps` warning
## The expected behavior
ESLint plugin should work even if the `useEffect` callback isn't inline
| {'url': 'https://api.github.com/repos/facebook/react/issues/18176/reactions', 'total_count': 1, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 1} | https://api.github.com/repos/facebook/react/issues/18176/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18165 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18165/labels{/name} | https://api.github.com/repos/facebook/react/issues/18165/comments | https://api.github.com/repos/facebook/react/issues/18165/events | https://github.com/facebook/react/pull/18165 | 572,429,753 | MDExOlB1bGxSZXF1ZXN0MzgxMTI4NDU2 | 18,165 | Move remaining things to named exports | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18165/builds/12485) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 1bcfdefa29a8742325feb5765666036abc4a95b6:\n\n|Sandbox| Source |\n|--|--|\n|[ecstatic-curran-i145q](https://codesandbox.io/s/ecstatic-curran-i145q)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 739f20beda56a28a9212e3478571c866babee118...1bcfdefa29a8742325feb5765666036abc4a95b6</p>\n\n\n \n## react-flight-dom-webpack\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-flight-dom-webpack-server.browser.development.js | -3.0% | -4.1% | 8.56 KB | 8.31 KB | 2.8 KB | 2.68 KB | NODE_DEV\n**react-flight-dom-webpack-server.browser.production.min.js** | **-1.0%** | **-1.7%** | **2.61 KB** | **2.59 KB** | **1.24 KB** | **1.22 KB** | **NODE_PROD**\nreact-flight-dom-webpack.development.js | -2.6% | -4.0% | 8.78 KB | 8.55 KB | 2.46 KB | 2.36 KB | UMD_DEV\n**react-flight-dom-webpack.production.min.js** | **-0.4%** | **-0.4%** | **2.86 KB** | **2.85 KB** | **1.32 KB** | **1.32 KB** | **UMD_PROD**\nreact-flight-dom-webpack.development.js | -2.9% | -5.1% | 8.05 KB | 7.81 KB | 2.38 KB | 2.26 KB | NODE_DEV\n**react-flight-dom-webpack.production.min.js** | **-0.4%** | **-1.8%** | **2.68 KB** | **2.67 KB** | **1.25 KB** | **1.23 KB** | **NODE_PROD**\nreact-flight-dom-webpack-server.node.development.js | -2.6% | -3.6% | 9.49 KB | 9.25 KB | 3.06 KB | 2.95 KB | NODE_DEV\n**react-flight-dom-webpack-server.node.production.min.js** | **-1.0%** | **-1.9%** | **2.77 KB** | **2.75 KB** | **1.26 KB** | **1.24 KB** | **NODE_PROD**\nreact-flight-dom-webpack-server.browser.development.js | -2.6% | -3.1% | 9.37 KB | 9.13 KB | 2.9 KB | 2.8 KB | UMD_DEV\n**react-flight-dom-webpack-server.browser.production.min.js** | **-0.5%** | **-0.8%** | **2.82 KB** | **2.81 KB** | **1.32 KB** | **1.31 KB** | **UMD_PROD**\n\n## react-noop-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**react-noop-renderer-flight-client.production.min.js** | **-4.5%** | **-5.5%** | **537 B** | **513 B** | **398 B** | **376 B** | **NODE_PROD**\nreact-noop-renderer.development.js | +9.0% | +4.8% | 26.87 KB | 29.28 KB | 5.5 KB | 5.76 KB | NODE_DEV\n**react-noop-renderer.production.min.js** | **:small_red_triangle:+11.3%** | **:small_red_triangle:+8.9%** | **10.78 KB** | **12 KB** | **3.28 KB** | **3.57 KB** | **NODE_PROD**\nreact-noop-renderer-server.development.js | -11.8% | -12.6% | 1.81 KB | 1.59 KB | 854 B | 746 B | NODE_DEV\n**react-noop-renderer-server.production.min.js** | **-2.8%** | **-3.9%** | **864 B** | **840 B** | **488 B** | **469 B** | **NODE_PROD**\nreact-noop-renderer-flight-client.development.js | -16.7% | -15.2% | 1.42 KB | 1.18 KB | 723 B | 613 B | NODE_DEV\nreact-noop-renderer-persistent.development.js | +8.9% | +4.8% | 26.92 KB | 29.33 KB | 5.51 KB | 5.77 KB | NODE_DEV\n**react-noop-renderer-persistent.production.min.js** | **:small_red_triangle:+11.3%** | **:small_red_triangle:+8.8%** | **10.8 KB** | **12.02 KB** | **3.29 KB** | **3.58 KB** | **NODE_PROD**\nreact-noop-renderer-flight-server.development.js | -12.3% | -11.6% | 1.98 KB | 1.73 KB | 905 B | 800 B | NODE_DEV\n**react-noop-renderer-flight-server.production.min.js** | **-2.5%** | **-3.3%** | **970 B** | **946 B** | **541 B** | **523 B** | **NODE_PROD**\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler.development.js | -0.1% | -0.2% | 553.49 KB | 553.15 KB | 116.95 KB | 116.76 KB | NODE_DEV\nreact-reconciler-reflection.development.js | 0.0% | -0.1% | 16 KB | 16 KB | 4.89 KB | 4.89 KB | NODE_DEV\n**react-reconciler.production.min.js** | **:small_red_triangle:+0.1%** | **-0.1%** | **73.47 KB** | **73.54 KB** | **21.72 KB** | **21.69 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **-0.2%** | **2.8 KB** | **2.8 KB** | **1.2 KB** | **1.2 KB** | **NODE_PROD**\nreact-reconciler-persistent.development.js | -0.1% | -0.2% | 552.17 KB | 551.79 KB | 116.81 KB | 116.6 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **:small_red_triangle:+0.1%** | **-0.1%** | **73.48 KB** | **73.55 KB** | **21.73 KB** | **21.7 KB** | **NODE_PROD**\n\n## react-server\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-server.development.js | -7.8% | -10.8% | 3.99 KB | 3.68 KB | 1.38 KB | 1.23 KB | NODE_DEV\n**react-server.production.min.js** | **-6.7%** | **-6.2%** | **1.22 KB** | **1.14 KB** | **675 B** | **633 B** | **NODE_PROD**\nreact-server-flight.development.js | -3.2% | -4.8% | 9.45 KB | 9.15 KB | 2.92 KB | 2.78 KB | NODE_DEV\n**react-server-flight.production.min.js** | **-3.5%** | **-4.4%** | **2.89 KB** | **2.78 KB** | **1.31 KB** | **1.25 KB** | **NODE_PROD**\n\n## react-debug-tools\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-debug-tools.development.js | -1.1% | -1.8% | 20.49 KB | 20.27 KB | 5.95 KB | 5.84 KB | NODE_DEV\n**react-debug-tools.production.min.js** | **-0.5%** | **-1.0%** | **6.26 KB** | **6.23 KB** | **2.46 KB** | **2.44 KB** | **NODE_PROD**\n\n## react-flight\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**react-flight.production.min.js** | **-2.3%** | **-2.8%** | **2.5 KB** | **2.45 KB** | **1.18 KB** | **1.15 KB** | **NODE_PROD**\nreact-flight.development.js | -3.9% | -6.1% | 7.45 KB | 7.16 KB | 2.38 KB | 2.23 KB | NODE_DEV\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 1bcfdefa29a8742325feb5765666036abc4a95b6\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 739f20beda56a28a9212e3478571c866babee118...1bcfdefa29a8742325feb5765666036abc4a95b6</p>\n\n\n \n## react-flight-dom-webpack\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-flight-dom-webpack-server.node.development.js | -2.6% | -3.5% | 9.5 KB | 9.26 KB | 3.07 KB | 2.96 KB | NODE_DEV\n**react-flight-dom-webpack-server.node.production.min.js** | **-1.0%** | **-1.8%** | **2.79 KB** | **2.76 KB** | **1.27 KB** | **1.25 KB** | **NODE_PROD**\nreact-flight-dom-webpack-server.browser.development.js | -2.6% | -3.1% | 9.38 KB | 9.14 KB | 2.9 KB | 2.81 KB | UMD_DEV\n**react-flight-dom-webpack-server.browser.production.min.js** | **-0.5%** | **-0.8%** | **2.83 KB** | **2.82 KB** | **1.33 KB** | **1.32 KB** | **UMD_PROD**\nreact-flight-dom-webpack-server.browser.development.js | -3.0% | -4.2% | 8.58 KB | 8.32 KB | 2.81 KB | 2.69 KB | NODE_DEV\n**react-flight-dom-webpack-server.browser.production.min.js** | **-1.0%** | **-1.6%** | **2.63 KB** | **2.6 KB** | **1.25 KB** | **1.23 KB** | **NODE_PROD**\nreact-flight-dom-webpack.development.js | -2.6% | -4.0% | 8.79 KB | 8.57 KB | 2.47 KB | 2.37 KB | UMD_DEV\n**react-flight-dom-webpack.production.min.js** | **-0.4%** | **-0.4%** | **2.87 KB** | **2.86 KB** | **1.33 KB** | **1.33 KB** | **UMD_PROD**\nreact-flight-dom-webpack.development.js | -2.9% | -5.1% | 8.06 KB | 7.82 KB | 2.39 KB | 2.26 KB | NODE_DEV\n**react-flight-dom-webpack.production.min.js** | **-0.4%** | **-1.9%** | **2.69 KB** | **2.68 KB** | **1.26 KB** | **1.24 KB** | **NODE_PROD**\n\n## react-noop-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-noop-renderer-flight-server.development.js | -12.2% | -11.5% | 1.99 KB | 1.75 KB | 915 B | 810 B | NODE_DEV\n**react-noop-renderer-flight-server.production.min.js** | **-2.4%** | **-3.3%** | **983 B** | **959 B** | **551 B** | **533 B** | **NODE_PROD**\nreact-noop-renderer-server.development.js | -11.8% | -12.5% | 1.82 KB | 1.61 KB | 862 B | 754 B | NODE_DEV\n**react-noop-renderer-server.production.min.js** | **-2.7%** | **-3.8%** | **877 B** | **853 B** | **497 B** | **478 B** | **NODE_PROD**\nreact-noop-renderer-persistent.development.js | +8.9% | +4.7% | 26.94 KB | 29.34 KB | 5.52 KB | 5.78 KB | NODE_DEV\n**react-noop-renderer-persistent.production.min.js** | **:small_red_triangle:+11.3%** | **:small_red_triangle:+8.8%** | **10.81 KB** | **12.04 KB** | **3.3 KB** | **3.59 KB** | **NODE_PROD**\nreact-noop-renderer.development.js | +9.0% | +4.8% | 26.88 KB | 29.3 KB | 5.5 KB | 5.77 KB | NODE_DEV\nreact-noop-renderer-flight-client.development.js | -16.5% | -15.0% | 1.43 KB | 1.2 KB | 732 B | 622 B | NODE_DEV\n**react-noop-renderer.production.min.js** | **:small_red_triangle:+11.3%** | **:small_red_triangle:+8.9%** | **10.79 KB** | **12.01 KB** | **3.29 KB** | **3.58 KB** | **NODE_PROD**\n**react-noop-renderer-flight-client.production.min.js** | **-4.4%** | **-5.4%** | **550 B** | **526 B** | **406 B** | **384 B** | **NODE_PROD**\n\n## react-server\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-server.development.js | -7.8% | -10.7% | 4 KB | 3.69 KB | 1.38 KB | 1.24 KB | NODE_DEV\n**react-server.production.min.js** | **-6.6%** | **-6.0%** | **1.23 KB** | **1.15 KB** | **682 B** | **641 B** | **NODE_PROD**\nreact-server-flight.development.js | -3.2% | -4.8% | 9.47 KB | 9.17 KB | 2.93 KB | 2.79 KB | NODE_DEV\n**react-server-flight.production.min.js** | **-2.8%** | **-3.3%** | **2.88 KB** | **2.8 KB** | **1.3 KB** | **1.26 KB** | **NODE_PROD**\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler-persistent.development.js | -0.1% | -0.2% | 552.18 KB | 551.81 KB | 116.82 KB | 116.61 KB | NODE_DEV\nreact-reconciler-reflection.development.js | 0.0% | -0.1% | 16.01 KB | 16.01 KB | 4.9 KB | 4.89 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **:small_red_triangle:+0.1%** | **-0.1%** | **73.5 KB** | **73.56 KB** | **21.73 KB** | **21.71 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **-0.2%** | **2.81 KB** | **2.81 KB** | **1.21 KB** | **1.21 KB** | **NODE_PROD**\nreact-reconciler.development.js | -0.1% | -0.2% | 574.25 KB | 573.91 KB | 120.84 KB | 120.65 KB | NODE_DEV\n**react-reconciler.production.min.js** | **:small_red_triangle:+0.1%** | **-0.2%** | **76.25 KB** | **76.31 KB** | **22.4 KB** | **22.36 KB** | **NODE_PROD**\n\n## react-flight\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-flight.development.js | -3.9% | -6.0% | 7.46 KB | 7.17 KB | 2.38 KB | 2.24 KB | NODE_DEV\n**react-flight.production.min.js** | **-2.3%** | **-2.8%** | **2.52 KB** | **2.46 KB** | **1.19 KB** | **1.16 KB** | **NODE_PROD**\n\n## react-debug-tools\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-debug-tools.development.js | -1.1% | -1.8% | 20.5 KB | 20.28 KB | 5.96 KB | 5.85 KB | NODE_DEV\n**react-debug-tools.production.min.js** | **-0.5%** | **-0.9%** | **6.27 KB** | **6.24 KB** | **2.47 KB** | **2.45 KB** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 1bcfdefa29a8742325feb5765666036abc4a95b6\n</p>\n"
] | 2020-02-27 23:43:01 | 2020-02-28 01:18:56 | 2020-02-28 01:18:56 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18165', 'html_url': 'https://github.com/facebook/react/pull/18165', 'diff_url': 'https://github.com/facebook/react/pull/18165.diff', 'patch_url': 'https://github.com/facebook/react/pull/18165.patch', 'merged_at': datetime.datetime(2020, 2, 28, 1, 18, 56)} | The interesting case here is the noop renderers. The wrappers around the reconciler now changed to use a local export that gets mutated.
ReactNoop and ReactNoopPersistent now have to destructure the object to list out the names it's going to export. We should probably refactor ReactNoop away from createReactNoop. Especially since it's also not Flow typed.
| {'url': 'https://api.github.com/repos/facebook/react/issues/18165/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18165/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18159 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18159/labels{/name} | https://api.github.com/repos/facebook/react/issues/18159/comments | https://api.github.com/repos/facebook/react/issues/18159/events | https://github.com/facebook/react/pull/18159 | 572,325,235 | MDExOlB1bGxSZXF1ZXN0MzgxMDQ1ODMz | 18,159 | [RN] Add an early invariant to debug a mystery crash | {'login': 'gaearon', 'id': 810438, 'node_id': 'MDQ6VXNlcjgxMDQzOA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/810438?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/gaearon', 'html_url': 'https://github.com/gaearon', 'followers_url': 'https://api.github.com/users/gaearon/followers', 'following_url': 'https://api.github.com/users/gaearon/following{/other_user}', 'gists_url': 'https://api.github.com/users/gaearon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/gaearon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/gaearon/subscriptions', 'organizations_url': 'https://api.github.com/users/gaearon/orgs', 'repos_url': 'https://api.github.com/users/gaearon/repos', 'events_url': 'https://api.github.com/users/gaearon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/gaearon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18159/builds/12448) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit d50dea1f65fad3bdb230046628c0f5f02aa8c305:\n\n|Sandbox| Source |\n|--|--|\n|[hardcore-golick-nlsdm](https://codesandbox.io/s/hardcore-golick-nlsdm)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 3e809bf5d46dbabdc2ccbec41e030c5cb1efeac4...d50dea1f65fad3bdb230046628c0f5f02aa8c305</p>\n\n\n \n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-profiling.js | 0.0% | -0.0% | 263.68 KB | 263.68 KB | 45.87 KB | 45.87 KB | RN_OSS_PROFILING\nReactFabric-dev.js | +0.1% | +0.1% | 614.45 KB | 614.82 KB | 132.36 KB | 132.49 KB | RN_FB_DEV\n**ReactFabric-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **252.87 KB** | **253.06 KB** | **43.81 KB** | **43.86 KB** | **RN_FB_PROD**\nReactFabric-profiling.js | +0.1% | +0.1% | 264.02 KB | 264.21 KB | 45.94 KB | 46 KB | RN_FB_PROFILING\nReactNativeRenderer-dev.js | +0.1% | +0.1% | 632.53 KB | 632.9 KB | 136.65 KB | 136.77 KB | RN_FB_DEV\n**ReactNativeRenderer-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **261.01 KB** | **261.2 KB** | **45.28 KB** | **45.33 KB** | **RN_FB_PROD**\nReactNativeRenderer-profiling.js | +0.1% | +0.1% | 272.16 KB | 272.35 KB | 47.41 KB | 47.48 KB | RN_FB_PROFILING\nReactFabric-dev.js | 0.0% | -0.0% | 611.57 KB | 611.57 KB | 131.98 KB | 131.98 KB | RN_OSS_DEV\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against d50dea1f65fad3bdb230046628c0f5f02aa8c305\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against d50dea1f65fad3bdb230046628c0f5f02aa8c305\n</p>\n"
] | 2020-02-27 20:02:50 | 2020-02-28 11:56:37 | 2020-02-28 11:56:37 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18159', 'html_url': 'https://github.com/facebook/react/pull/18159', 'diff_url': 'https://github.com/facebook/react/pull/18159.diff', 'patch_url': 'https://github.com/facebook/react/pull/18159.patch', 'merged_at': datetime.datetime(2020, 2, 28, 11, 56, 37)} | See D20130868 and t62461245. We've only been seeing it on RN in production, and we don't understand how this is possible. Trying to gather more details. I've turned it off in all configs except RN FB. | {'url': 'https://api.github.com/repos/facebook/react/issues/18159/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18159/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18157 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18157/labels{/name} | https://api.github.com/repos/facebook/react/issues/18157/comments | https://api.github.com/repos/facebook/react/issues/18157/events | https://github.com/facebook/react/pull/18157 | 572,313,269 | MDExOlB1bGxSZXF1ZXN0MzgxMDM2NzMy | 18,157 | Remove shallow Node builds | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18157/builds/12444) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 87d4b83c2e09579fabe7179b4b5a887a507dae5f:\n\n|Sandbox| Source |\n|--|--|\n|[blazing-currying-lhvjp](https://codesandbox.io/s/blazing-currying-lhvjp)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against bb6a87ecfb879ead8d84a473b083fbabf610f759\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against bb6a87ecfb879ead8d84a473b083fbabf610f759\n</p>\n",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18157/builds/12459) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit bb6a87ecfb879ead8d84a473b083fbabf610f759:\n\n|Sandbox| Source |\n|--|--|\n|[lively-night-eh66w](https://codesandbox.io/s/lively-night-eh66w)| Configuration |\n",
"~I mentioned in my original PR that I didn’t bother with a UMD_PROD build in my fork, so I guess your UMD_PROD build would be a minified version of a UMD_DEV build with things like warnings and non-minified errors, but I guess that’s fine? 😅~\r\n\r\nIgnore that. It should actually be fine for the most part because Rollup will turn the ESM build into UMD."
] | 2020-02-27 19:42:47 | 2020-02-27 22:11:41 | 2020-02-27 22:11:41 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18157', 'html_url': 'https://github.com/facebook/react/pull/18157', 'diff_url': 'https://github.com/facebook/react/pull/18157.diff', 'patch_url': 'https://github.com/facebook/react/pull/18157.patch', 'merged_at': datetime.datetime(2020, 2, 27, 22, 11, 41)} | This is just a forwarding module. We can hardcode it.
| {'url': 'https://api.github.com/repos/facebook/react/issues/18157/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18157/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18156 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18156/labels{/name} | https://api.github.com/repos/facebook/react/issues/18156/comments | https://api.github.com/repos/facebook/react/issues/18156/events | https://github.com/facebook/react/pull/18156 | 572,307,641 | MDExOlB1bGxSZXF1ZXN0MzgxMDMyMzcy | 18,156 | [Fabric] Fix targetAsInstance dispatchEvent "cannot read property of null" | {'login': 'JoshuaGross', 'id': 70602, 'node_id': 'MDQ6VXNlcjcwNjAy', 'avatar_url': 'https://avatars.githubusercontent.com/u/70602?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/JoshuaGross', 'html_url': 'https://github.com/JoshuaGross', 'followers_url': 'https://api.github.com/users/JoshuaGross/followers', 'following_url': 'https://api.github.com/users/JoshuaGross/following{/other_user}', 'gists_url': 'https://api.github.com/users/JoshuaGross/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/JoshuaGross/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/JoshuaGross/subscriptions', 'organizations_url': 'https://api.github.com/users/JoshuaGross/orgs', 'repos_url': 'https://api.github.com/users/JoshuaGross/repos', 'events_url': 'https://api.github.com/users/JoshuaGross/events{/privacy}', 'received_events_url': 'https://api.github.com/users/JoshuaGross/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18156/builds/12463) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 69c4f24197586c67e736e422ea87cfced5f48da9:\n\n|Sandbox| Source |\n|--|--|\n|[old-cache-71r3i](https://codesandbox.io/s/old-cache-71r3i)| Configuration |\n",
"Do you need this in the next sync?",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 69c4f24197586c67e736e422ea87cfced5f48da9\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 69c4f24197586c67e736e422ea87cfced5f48da9\n</p>\n",
"Eli thinks it “shouldn’t be possible” for stateNode to be null so I need to do a bit more investigation. I would probably just land the eventual solution as a partial sync if it’s urgent. ",
"fwiw we do null stateNode since recently on unmount. ",
"@gaearon Oh interesting - so the case where it's crashing, it would potentially mean an event has been dispatched to an unmounted component?",
"@gaearon If it seems to you that this is a reasonable check to make, and that we aren't covering up some earlier data corruption, then I'm fine landing this. ",
">so the case where it's crashing, it would potentially mean an event has been dispatched to an unmounted component\r\n\r\nPossibly.\r\n\r\n>If it seems to you that this is a reasonable check to make, and that we aren't covering up some earlier data corruption, then I'm fine landing this.\r\n\r\nI don't know the event system enough to tell if that's ever supposed to happen. @trueadm might know.",
"It's definitely possible with sync events. An event can cause a sync update that causes an update that unmounts a fiber, then the event can propagate to the unmounted fiber. It's rare, but can happen and should probably be guarded against.",
"Cool. Thanks for the context (cc @TheSavior)"
] | 2020-02-27 19:33:27 | 2020-02-28 02:00:47 | 2020-02-28 01:23:26 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18156', 'html_url': 'https://github.com/facebook/react/pull/18156', 'diff_url': 'https://github.com/facebook/react/pull/18156.diff', 'patch_url': 'https://github.com/facebook/react/pull/18156.patch', 'merged_at': datetime.datetime(2020, 2, 28, 1, 23, 25)} | ## Summary
In some cases in prod testing, the `targetFiber` here in `dispatchEvent` does not have a stateNode. If we try to get `canonical` directly from stateNode, it will crash. We already check that `targetFiber` is non-null before continuing, I think it makes sense to check stateNode as well.
It's unclear to me why this is happening in the first place, though (why we'd have a targetFiber but not a stateNode). We may want to investigate and fix that in addition to/instead of this.
## Test Plan
`yarn test`
`yarn test-prod`
`yarn flow fabric`
I have an FB-internal prod test as well. | {'url': 'https://api.github.com/repos/facebook/react/issues/18156/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18156/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18155 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18155/labels{/name} | https://api.github.com/repos/facebook/react/issues/18155/comments | https://api.github.com/repos/facebook/react/issues/18155/events | https://github.com/facebook/react/pull/18155 | 572,301,959 | MDExOlB1bGxSZXF1ZXN0MzgxMDI3OTQ2 | 18,155 | Refactor Portal Fiber parts for event system changes | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18155/builds/12439) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit f4d18e1210b65112219c7515e38d9c429f4f771c:\n\n|Sandbox| Source |\n|--|--|\n|[exciting-napier-jfn5p](https://codesandbox.io/s/exciting-napier-jfn5p)| Configuration |\n",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18155/builds/12461) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 7265e4430327d87d709ba52c30f814a22ead3d4d:\n\n|Sandbox| Source |\n|--|--|\n|[beautiful-moore-egwn6](https://codesandbox.io/s/beautiful-moore-egwn6)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 8e13e770e39a6fc634a87b5d5144ec1e54000a0c...7265e4430327d87d709ba52c30f814a22ead3d4d</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.7 KB | 123.71 KB | 38.58 KB | 38.58 KB | NODE_PROFILING\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.1% | 3.61 KB | 3.61 KB | 1.37 KB | 1.37 KB | UMD_DEV\nReactDOM-dev.js | +0.1% | +0.1% | 894.37 KB | 895.16 KB | 199.61 KB | 199.75 KB | FB_WWW_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **1.2 KB** | **1.2 KB** | **707 B** | **708 B** | **UMD_PROD**\nreact-dom-test-utils.development.js | -0.0% | 0.0% | 53.69 KB | 53.69 KB | 14.01 KB | 14.01 KB | UMD_DEV\nreact-dom-testing.profiling.min.js | 0.0% | 0.0% | 121.25 KB | 121.26 KB | 38.11 KB | 38.12 KB | NODE_PROFILING\n**react-dom-test-utils.production.min.js** | **-0.1%** | **-0.1%** | **11.22 KB** | **11.21 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.45 KB** | **20.45 KB** | **7.49 KB** | **7.49 KB** | **UMD_PROD**\nreact-dom-test-utils.development.js | -0.0% | 0.0% | 49.52 KB | 49.52 KB | 13.55 KB | 13.55 KB | NODE_DEV\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 127.45 KB | 127.45 KB | 33.83 KB | 33.83 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **-0.1%** | **0.0%** | **10.97 KB** | **10.97 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.36 KB** | **20.36 KB** | **7.45 KB** | **7.45 KB** | **NODE_PROD**\nreact-dom.development.js | +0.1% | +0.1% | 914.29 KB | 915.12 KB | 200.19 KB | 200.33 KB | UMD_DEV\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 59.08 KB | 59.08 KB | 14.75 KB | 14.75 KB | UMD_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **119.75 KB** | **119.76 KB** | **38.22 KB** | **38.24 KB** | **UMD_PROD**\nReactTestUtils-dev.js | -0.0% | -0.0% | 51.37 KB | 51.37 KB | 13.75 KB | 13.75 KB | FB_WWW_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **10.28 KB** | **10.28 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | 0.0% | 134.46 KB | 134.46 KB | 34.27 KB | 34.28 KB | FB_WWW_DEV\nreact-dom.profiling.min.js | 0.0% | +0.1% | 123.4 KB | 123.41 KB | 39.38 KB | 39.41 KB | UMD_PROFILING\nreact-dom.development.js | +0.1% | +0.1% | 866.69 KB | 867.5 KB | 196.52 KB | 196.64 KB | NODE_DEV\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 56.05 KB | 56.05 KB | 14.54 KB | 14.54 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.94 KB | 3.94 KB | 1.45 KB | 1.46 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **119.9 KB** | **119.91 KB** | **37.45 KB** | **37.47 KB** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10 KB** | **10 KB** | **3.38 KB** | **3.39 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.19 KB** | **1.19 KB** | **684 B** | **686 B** | **NODE_PROD**\n**ReactDOM-prod.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.1%** | **370.74 KB** | **371.88 KB** | **67.45 KB** | **67.53 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | +0.3% | +0.1% | 381.95 KB | 383.09 KB | 69.57 KB | 69.65 KB | FB_WWW_PROFILING\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 3.21 KB | 3.21 KB | 1.3 KB | 1.3 KB | NODE_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.03 KB** | **1.03 KB** | **628 B** | **630 B** | **NODE_PROD**\nreact-dom-testing.development.js | +0.1% | +0.1% | 887.91 KB | 888.73 KB | 195.74 KB | 195.86 KB | UMD_DEV\n**react-dom-testing.production.min.js** | **0.0%** | **0.0%** | **117.41 KB** | **117.42 KB** | **37.72 KB** | **37.74 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | +0.1% | +0.1% | 869.57 KB | 870.36 KB | 194.5 KB | 194.65 KB | FB_WWW_DEV\nreact-dom-testing.profiling.min.js | 0.0% | +0.1% | 120.94 KB | 120.95 KB | 38.89 KB | 38.92 KB | UMD_PROFILING\n**ReactDOMTesting-prod.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.1%** | **368.76 KB** | **369.91 KB** | **67.34 KB** | **67.42 KB** | **FB_WWW_PROD**\nreact-dom-testing.development.js | +0.1% | +0.1% | 841.37 KB | 842.18 KB | 192.18 KB | 192.31 KB | NODE_DEV\nReactDOMTesting-profiling.js | +0.3% | +0.1% | 368.76 KB | 369.91 KB | 67.34 KB | 67.42 KB | FB_WWW_PROFILING\nreact-dom-server.node.development.js | 0.0% | 0.0% | 128.57 KB | 128.57 KB | 34.05 KB | 34.05 KB | NODE_DEV\n**react-dom-testing.production.min.js** | **0.0%** | **0.0%** | **117.57 KB** | **117.58 KB** | **37.05 KB** | **37.06 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.77 KB** | **20.77 KB** | **7.6 KB** | **7.6 KB** | **NODE_PROD**\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactART-dev.js | +0.1% | +0.1% | 539.01 KB | 539.31 KB | 112.86 KB | 112.95 KB | FB_WWW_DEV\nreact-art.development.js | 0.0% | +0.1% | 636.01 KB | 636.29 KB | 133.68 KB | 133.75 KB | UMD_DEV\n**react-art.production.min.js** | **-0.0%** | **0.0%** | **106.49 KB** | **106.48 KB** | **32.15 KB** | **32.16 KB** | **UMD_PROD**\nreact-art.development.js | +0.1% | +0.1% | 536.49 KB | 536.76 KB | 114.99 KB | 115.05 KB | NODE_DEV\n**react-art.production.min.js** | **-0.0%** | **0.0%** | **71.42 KB** | **71.41 KB** | **21.36 KB** | **21.37 KB** | **NODE_PROD**\n**ReactART-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **227.26 KB** | **227.42 KB** | **38.49 KB** | **38.53 KB** | **FB_WWW_PROD**\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-test-renderer.development.js | +0.1% | +0.1% | 554.6 KB | 554.91 KB | 115.42 KB | 115.5 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **-0.0%** | **0.0%** | **71.14 KB** | **71.13 KB** | **21.62 KB** | **21.62 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 524.92 KB | 525.22 KB | 113.1 KB | 113.17 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **-0.0%** | **:small_red_triangle:+0.1%** | **70.95 KB** | **70.93 KB** | **21.29 KB** | **21.31 KB** | **NODE_PROD**\nReactTestRenderer-dev.js | +0.1% | +0.1% | 551.81 KB | 552.15 KB | 116.23 KB | 116.31 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | 0.0% | 39.27 KB | 39.27 KB | 9.86 KB | 9.86 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **11.65 KB** | **11.65 KB** | **3.59 KB** | **3.6 KB** | **UMD_PROD**\nreact-test-renderer-shallow.development.js | 0.0% | 0.0% | 32.13 KB | 32.13 KB | 8.41 KB | 8.41 KB | NODE_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **11.77 KB** | **11.77 KB** | **3.69 KB** | **3.69 KB** | **NODE_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-dev.js | +0.1% | +0.1% | 615.82 KB | 616.23 KB | 132.76 KB | 132.85 KB | RN_FB_DEV\n**ReactFabric-prod.js** | **0.0%** | **:small_red_triangle:+0.1%** | **253.25 KB** | **253.29 KB** | **43.91 KB** | **43.94 KB** | **RN_FB_PROD**\nReactNativeRenderer-dev.js | 0.0% | 0.0% | 630.69 KB | 630.99 KB | 136.53 KB | 136.59 KB | RN_OSS_DEV\nReactFabric-profiling.js | 0.0% | +0.1% | 264.41 KB | 264.46 KB | 46.03 KB | 46.06 KB | RN_FB_PROFILING\n**ReactNativeRenderer-prod.js** | **-0.0%** | **0.0%** | **260.95 KB** | **260.92 KB** | **45.25 KB** | **45.27 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | -0.0% | 0.0% | 272.12 KB | 272.09 KB | 47.38 KB | 47.4 KB | RN_OSS_PROFILING\nReactNativeRenderer-dev.js | 0.0% | 0.0% | 633.66 KB | 633.97 KB | 136.92 KB | 136.98 KB | RN_FB_DEV\n**ReactNativeRenderer-prod.js** | **-0.0%** | **0.0%** | **261.34 KB** | **261.31 KB** | **45.31 KB** | **45.33 KB** | **RN_FB_PROD**\nReactNativeRenderer-profiling.js | -0.0% | 0.0% | 272.5 KB | 272.47 KB | 47.44 KB | 47.46 KB | RN_FB_PROFILING\nReactFabric-dev.js | +0.1% | +0.1% | 612.94 KB | 613.35 KB | 132.38 KB | 132.46 KB | RN_OSS_DEV\n**ReactFabric-prod.js** | **0.0%** | **:small_red_triangle:+0.1%** | **252.9 KB** | **252.94 KB** | **43.82 KB** | **43.85 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | 0.0% | +0.1% | 264.07 KB | 264.11 KB | 45.95 KB | 45.99 KB | RN_OSS_PROFILING\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler-persistent.development.js | +0.1% | +0.1% | 553.05 KB | 553.61 KB | 116.97 KB | 117.08 KB | NODE_DEV\nreact-reconciler-reflection.development.js | 0.0% | 0.0% | 16.01 KB | 16.01 KB | 4.9 KB | 4.9 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **:small_red_triangle:+0.1%** | **0.0%** | **73.5 KB** | **73.57 KB** | **21.73 KB** | **21.74 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **2.81 KB** | **2.81 KB** | **1.21 KB** | **1.21 KB** | **NODE_PROD**\nreact-reconciler.development.js | +0.1% | +0.1% | 575.12 KB | 575.68 KB | 121.02 KB | 121.13 KB | NODE_DEV\n**react-reconciler.production.min.js** | **:small_red_triangle:+0.1%** | **0.0%** | **76.25 KB** | **76.32 KB** | **22.4 KB** | **22.41 KB** | **NODE_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: :small_red_triangle:+0.1%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 7265e4430327d87d709ba52c30f814a22ead3d4d\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 8e13e770e39a6fc634a87b5d5144ec1e54000a0c...7265e4430327d87d709ba52c30f814a22ead3d4d</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | +0.3% | +0.1% | 405.88 KB | 407.1 KB | 73.83 KB | 73.93 KB | FB_WWW_PROFILING\n**react-dom-testing.production.min.js** | **0.0%** | **0.0%** | **117.01 KB** | **117.02 KB** | **36.92 KB** | **36.93 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 59.07 KB | 59.07 KB | 14.75 KB | 14.75 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.02 KB** | **1.02 KB** | **620 B** | **622 B** | **NODE_PROD**\nreact-dom-testing.profiling.min.js | 0.0% | 0.0% | 120.7 KB | 120.71 KB | 37.97 KB | 37.99 KB | NODE_PROFILING\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.26 KB** | **10.26 KB** | **3.48 KB** | **3.49 KB** | **UMD_PROD**\nReactTestUtils-dev.js | -0.0% | -0.0% | 51.38 KB | 51.37 KB | 13.75 KB | 13.74 KB | FB_WWW_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.2% | 3.93 KB | 3.93 KB | 1.45 KB | 1.45 KB | NODE_DEV\nreact-dom.development.js | +0.1% | +0.1% | 885.6 KB | 886.43 KB | 195.2 KB | 195.33 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.17 KB** | **1.17 KB** | **675 B** | **677 B** | **NODE_PROD**\n**react-dom.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **115.85 KB** | **115.87 KB** | **37.08 KB** | **37.11 KB** | **UMD_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **19.99 KB** | **19.99 KB** | **7.4 KB** | **7.4 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | +0.1% | 119.38 KB | 119.39 KB | 38.28 KB | 38.32 KB | UMD_PROFILING\nReactDOMTesting-dev.js | +0.1% | +0.1% | 895.79 KB | 896.58 KB | 199.81 KB | 199.94 KB | FB_WWW_DEV\nreact-dom.development.js | +0.1% | +0.1% | 839.19 KB | 840 KB | 191.6 KB | 191.75 KB | NODE_DEV\n**ReactDOMTesting-prod.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.1%** | **381.65 KB** | **382.87 KB** | **69.4 KB** | **69.5 KB** | **FB_WWW_PROD**\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 125.93 KB | 125.93 KB | 33.61 KB | 33.61 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **115.93 KB** | **115.94 KB** | **36.45 KB** | **36.46 KB** | **NODE_PROD**\nreact-dom-testing.development.js | +0.1% | +0.1% | 885.56 KB | 886.38 KB | 195.47 KB | 195.59 KB | UMD_DEV\nReactDOMTesting-profiling.js | +0.3% | +0.1% | 381.65 KB | 382.87 KB | 69.4 KB | 69.5 KB | FB_WWW_PROFILING\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **19.9 KB** | **19.9 KB** | **7.37 KB** | **7.37 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.1% | 3.59 KB | 3.59 KB | 1.36 KB | 1.36 KB | UMD_DEV\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.61 KB | 119.62 KB | 37.51 KB | 37.52 KB | NODE_PROFILING\n**react-dom-testing.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **116.89 KB** | **116.9 KB** | **37.59 KB** | **37.61 KB** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **1.19 KB** | **1.19 KB** | **699 B** | **700 B** | **UMD_PROD**\nReactDOM-dev.js | +0.1% | +0.1% | 936.45 KB | 937.24 KB | 208.25 KB | 208.37 KB | FB_WWW_DEV\nreact-dom-testing.profiling.min.js | 0.0% | +0.1% | 120.42 KB | 120.43 KB | 38.76 KB | 38.79 KB | UMD_PROFILING\nReactDOMServer-dev.js | 0.0% | 0.0% | 135.38 KB | 135.38 KB | 34.43 KB | 34.44 KB | FB_WWW_DEV\n**ReactDOM-prod.js** | **:small_red_triangle:+0.3%** | **:small_red_triangle:+0.1%** | **394.59 KB** | **395.82 KB** | **71.68 KB** | **71.78 KB** | **FB_WWW_PROD**\nreact-dom-testing.development.js | +0.1% | +0.1% | 839.12 KB | 839.93 KB | 191.92 KB | 192.05 KB | NODE_DEV\n**ReactDOMServer-prod.js** | **0.0%** | **0.0%** | **48.8 KB** | **48.8 KB** | **11.14 KB** | **11.14 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 3.2 KB | 3.2 KB | 1.29 KB | 1.29 KB | NODE_DEV\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 56.04 KB | 56.04 KB | 14.53 KB | 14.53 KB | NODE_DEV\nreact-dom-test-utils.development.js | -0.0% | 0.0% | 53.68 KB | 53.67 KB | 14 KB | 14 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **9.99 KB** | **9.99 KB** | **3.38 KB** | **3.38 KB** | **NODE_PROD**\n**react-dom-test-utils.production.min.js** | **-0.1%** | **-0.0%** | **11.2 KB** | **11.2 KB** | **4.15 KB** | **4.15 KB** | **UMD_PROD**\nreact-dom-test-utils.development.js | -0.0% | 0.0% | 49.51 KB | 49.5 KB | 13.54 KB | 13.54 KB | NODE_DEV\nreact-dom-server.node.development.js | 0.0% | 0.0% | 127.06 KB | 127.06 KB | 33.83 KB | 33.83 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **-0.1%** | **0.0%** | **10.96 KB** | **10.95 KB** | **4.08 KB** | **4.08 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.31 KB** | **20.31 KB** | **7.52 KB** | **7.53 KB** | **NODE_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**ReactNativeRenderer-prod.js** | **-0.0%** | **0.0%** | **260.94 KB** | **260.91 KB** | **45.24 KB** | **45.26 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | -0.0% | 0.0% | 272.11 KB | 272.07 KB | 47.37 KB | 47.39 KB | RN_OSS_PROFILING\nReactFabric-dev.js | +0.1% | +0.1% | 612.93 KB | 613.34 KB | 132.37 KB | 132.46 KB | RN_OSS_DEV\n**ReactFabric-prod.js** | **0.0%** | **:small_red_triangle:+0.1%** | **252.89 KB** | **252.93 KB** | **43.81 KB** | **43.84 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | 0.0% | +0.1% | 264.05 KB | 264.1 KB | 45.95 KB | 45.98 KB | RN_OSS_PROFILING\nReactNativeRenderer-dev.js | 0.0% | 0.0% | 630.67 KB | 630.98 KB | 136.52 KB | 136.59 KB | RN_OSS_DEV\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler-persistent.development.js | +0.1% | +0.1% | 553.04 KB | 553.6 KB | 116.97 KB | 117.07 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **:small_red_triangle:+0.1%** | **0.0%** | **73.48 KB** | **73.56 KB** | **21.73 KB** | **21.73 KB** | **NODE_PROD**\nreact-reconciler.development.js | +0.1% | +0.1% | 554.36 KB | 554.92 KB | 117.1 KB | 117.21 KB | NODE_DEV\nreact-reconciler-reflection.development.js | 0.0% | 0.0% | 16 KB | 16 KB | 4.89 KB | 4.89 KB | NODE_DEV\n**react-reconciler.production.min.js** | **:small_red_triangle:+0.1%** | **0.0%** | **73.45 KB** | **73.52 KB** | **21.7 KB** | **21.71 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **2.8 KB** | **2.8 KB** | **1.2 KB** | **1.2 KB** | **NODE_PROD**\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**react-test-renderer.production.min.js** | **-0.0%** | **:small_red_triangle:+0.1%** | **70.92 KB** | **70.91 KB** | **21.28 KB** | **21.29 KB** | **NODE_PROD**\nreact-test-renderer-shallow.development.js | 0.0% | 0.0% | 32.11 KB | 32.11 KB | 8.4 KB | 8.41 KB | NODE_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **11.75 KB** | **11.75 KB** | **3.68 KB** | **3.68 KB** | **NODE_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 554.58 KB | 554.88 KB | 115.41 KB | 115.48 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **-0.0%** | **0.0%** | **71.11 KB** | **71.1 KB** | **21.61 KB** | **21.61 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.1% | +0.1% | 524.89 KB | 525.19 KB | 113.08 KB | 113.16 KB | NODE_DEV\nReactTestRenderer-dev.js | +0.1% | +0.1% | 551.8 KB | 552.13 KB | 116.23 KB | 116.31 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | 0.0% | 39.26 KB | 39.26 KB | 9.85 KB | 9.85 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **0.0%** | **11.63 KB** | **11.63 KB** | **3.59 KB** | **3.59 KB** | **UMD_PROD**\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**react-art.production.min.js** | **-0.0%** | **0.0%** | **69.05 KB** | **69.04 KB** | **20.71 KB** | **20.72 KB** | **NODE_PROD**\nreact-art.development.js | 0.0% | 0.0% | 616.83 KB | 617.12 KB | 130.26 KB | 130.32 KB | UMD_DEV\n**react-art.production.min.js** | **-0.0%** | **0.0%** | **104.06 KB** | **104.05 KB** | **31.49 KB** | **31.5 KB** | **UMD_PROD**\nreact-art.development.js | +0.1% | +0.1% | 518.06 KB | 518.33 KB | 111.54 KB | 111.6 KB | NODE_DEV\nReactART-dev.js | +0.1% | +0.1% | 565.6 KB | 565.91 KB | 118.35 KB | 118.43 KB | FB_WWW_DEV\n**ReactART-prod.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **234.44 KB** | **234.65 KB** | **39.76 KB** | **39.79 KB** | **FB_WWW_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: :small_red_triangle:+0.1%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 7265e4430327d87d709ba52c30f814a22ead3d4d\n</p>\n",
"@bvaughn Any idea why the devtools build fails for CI on this PR? Have I done something wrong or is it CI acting up again?",
"> filesystem layer verification failed for digest sha256:c8a34c72f5385eac42dc033f17c21af4a6cd34c842d7cd9b0f6d9dcdffd8c404\r\n\r\nNo clue what this means.",
"Thanks for the feedback @sebmarkbage. I'll go in a different direction."
] | 2020-02-27 19:24:09 | 2020-02-28 11:20:21 | 2020-02-28 11:20:21 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18155', 'html_url': 'https://github.com/facebook/react/pull/18155', 'diff_url': 'https://github.com/facebook/react/pull/18155.diff', 'patch_url': 'https://github.com/facebook/react/pull/18155.patch', 'merged_at': None} | This PR makes some changes to how we store the root container instance in context, and instead makes it so we store the root fiber instead. I've also added a Flow node for portal containers and also made it so that portal contains also have a `current` field, like root fiber containers do (this is needed for later changes that make the new event system possible). Lastly, we no longer pass around a `container` DOM node through the event dispatch system and instead expect the root/portal fiber instance passed to the host config.
The reason for making these changes, is that the previous assumption in passing around the "root container" element to the event system falls down in a bunch of places. Notably, where we might use the same container DOM element for multiple roots (`ReactDOM.createPortal(..., document.body)` comes to mind here). So instead of passing around the DOM node, we can instead pass around the boxed container for either the root or portal fiber – allowing the event system to traverse the correct tree and apply the correct semantics for when we encounter multiple roots during event propagation.
Lastly, the changes to the host context stack are so that we can get the root/portal fiber directly. This was far less code and probably more performant that maintaining another stack just for root/portal fibers. We can easily get the container element from the root/portal fibers after, so there should be no difference in output compared to master. | {'url': 'https://api.github.com/repos/facebook/react/issues/18155/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18155/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18153 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18153/labels{/name} | https://api.github.com/repos/facebook/react/issues/18153/comments | https://api.github.com/repos/facebook/react/issues/18153/events | https://github.com/facebook/react/pull/18153 | 572,263,302 | MDExOlB1bGxSZXF1ZXN0MzgwOTk3Njc0 | 18,153 | Don't build shallow renderer for FB | {'login': 'gaearon', 'id': 810438, 'node_id': 'MDQ6VXNlcjgxMDQzOA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/810438?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/gaearon', 'html_url': 'https://github.com/gaearon', 'followers_url': 'https://api.github.com/users/gaearon/followers', 'following_url': 'https://api.github.com/users/gaearon/following{/other_user}', 'gists_url': 'https://api.github.com/users/gaearon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/gaearon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/gaearon/subscriptions', 'organizations_url': 'https://api.github.com/users/gaearon/orgs', 'repos_url': 'https://api.github.com/users/gaearon/repos', 'events_url': 'https://api.github.com/users/gaearon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/gaearon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18153/builds/12424) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 307d2966cbf3499cab56eadda565fcda85e36b83:\n\n|Sandbox| Source |\n|--|--|\n|[frosty-tdd-pmztf](https://codesandbox.io/s/frosty-tdd-pmztf)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 307d2966cbf3499cab56eadda565fcda85e36b83\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 307d2966cbf3499cab56eadda565fcda85e36b83\n</p>\n"
] | 2020-02-27 18:13:02 | 2020-02-27 19:44:26 | 2020-02-27 18:17:59 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18153', 'html_url': 'https://github.com/facebook/react/pull/18153', 'diff_url': 'https://github.com/facebook/react/pull/18153.diff', 'patch_url': 'https://github.com/facebook/react/pull/18153.patch', 'merged_at': datetime.datetime(2020, 2, 27, 18, 17, 59)} | We're now getting it from npm (`react-shallow-renderer`) so we don't need this bundle.
Related diff: D20142456. | {'url': 'https://api.github.com/repos/facebook/react/issues/18153/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18153/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18152 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18152/labels{/name} | https://api.github.com/repos/facebook/react/issues/18152/comments | https://api.github.com/repos/facebook/react/issues/18152/events | https://github.com/facebook/react/pull/18152 | 572,181,302 | MDExOlB1bGxSZXF1ZXN0MzgwOTMyMjk0 | 18,152 | Run test-prod job for experimental builds | {'login': 'gaearon', 'id': 810438, 'node_id': 'MDQ6VXNlcjgxMDQzOA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/810438?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/gaearon', 'html_url': 'https://github.com/gaearon', 'followers_url': 'https://api.github.com/users/gaearon/followers', 'following_url': 'https://api.github.com/users/gaearon/following{/other_user}', 'gists_url': 'https://api.github.com/users/gaearon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/gaearon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/gaearon/subscriptions', 'organizations_url': 'https://api.github.com/users/gaearon/orgs', 'repos_url': 'https://api.github.com/users/gaearon/repos', 'events_url': 'https://api.github.com/users/gaearon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/gaearon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18152/builds/12412) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit d3c46028b4b5bdaca468e157c5f91bafd90dda08:\n\n|Sandbox| Source |\n|--|--|\n|[silly-pond-vr9gn](https://codesandbox.io/s/silly-pond-vr9gn)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against d3c46028b4b5bdaca468e157c5f91bafd90dda08\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against d3c46028b4b5bdaca468e157c5f91bafd90dda08\n</p>\n",
"OK this didn't actually regress, it was just Jest cache for me locally. But we still should get this in."
] | 2020-02-27 16:03:01 | 2020-02-27 16:21:42 | 2020-02-27 16:21:37 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18152', 'html_url': 'https://github.com/facebook/react/pull/18152', 'diff_url': 'https://github.com/facebook/react/pull/18152.diff', 'patch_url': 'https://github.com/facebook/react/pull/18152.patch', 'merged_at': datetime.datetime(2020, 2, 27, 16, 21, 37)} | We forgot to run it, so it regressed. This is supposed to fail. Once it fails, I'll push a fix. | {'url': 'https://api.github.com/repos/facebook/react/issues/18152/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18152/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18151 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18151/labels{/name} | https://api.github.com/repos/facebook/react/issues/18151/comments | https://api.github.com/repos/facebook/react/issues/18151/events | https://github.com/facebook/react/issues/18151 | 572,124,046 | MDU6SXNzdWU1NzIxMjQwNDY= | 18,151 | Bug: Latest version breaks? | {'login': 'DavidLozzi', 'id': 3543383, 'node_id': 'MDQ6VXNlcjM1NDMzODM=', 'avatar_url': 'https://avatars.githubusercontent.com/u/3543383?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/DavidLozzi', 'html_url': 'https://github.com/DavidLozzi', 'followers_url': 'https://api.github.com/users/DavidLozzi/followers', 'following_url': 'https://api.github.com/users/DavidLozzi/following{/other_user}', 'gists_url': 'https://api.github.com/users/DavidLozzi/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/DavidLozzi/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/DavidLozzi/subscriptions', 'organizations_url': 'https://api.github.com/users/DavidLozzi/orgs', 'repos_url': 'https://api.github.com/users/DavidLozzi/repos', 'events_url': 'https://api.github.com/users/DavidLozzi/events{/privacy}', 'received_events_url': 'https://api.github.com/users/DavidLozzi/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"You're probably behind a proxy or something like this.",
"bingo, i was :("
] | 2020-02-27 14:26:58 | 2020-02-29 17:08:19 | 2020-02-27 14:33:01 | NONE | null | null | null | <!--
Please provide a clear and concise description of what the bug is. Include
screenshots if needed. Please test using the latest version of the relevant
React packages to make sure your issue has not already been fixed.
-->
React version:
## Steps To Reproduce
1. npm install react-test-renderer
<!--
Your bug will get fixed much faster if we can run your code and it doesn't
have dependencies other than React. Issues without reproduction steps or
code examples may be immediately closed as not actionable.
-->
Link to code example:
<!--
Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
repository on GitHub, or provide a minimal code example that reproduces the
problem. You may provide a screenshot of the application if you think it is
relevant to your bug report. Here are some tips for providing a minimal
example: https://stackoverflow.com/help/mcve.
-->
## The current behavior
When I pull this down I get error
`No matching version found for scheduler@^0.19.0`
and when I `npm install scheduler` i only get 0.18.0
## The expected behavior
it works | {'url': 'https://api.github.com/repos/facebook/react/issues/18151/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18151/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18149 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18149/labels{/name} | https://api.github.com/repos/facebook/react/issues/18149/comments | https://api.github.com/repos/facebook/react/issues/18149/events | https://github.com/facebook/react/pull/18149 | 572,084,945 | MDExOlB1bGxSZXF1ZXN0MzgwODUxMDU2 | 18,149 | test(getComponentName): Increase test coverage | {'login': 'eps1lon', 'id': 12292047, 'node_id': 'MDQ6VXNlcjEyMjkyMDQ3', 'avatar_url': 'https://avatars.githubusercontent.com/u/12292047?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/eps1lon', 'html_url': 'https://github.com/eps1lon', 'followers_url': 'https://api.github.com/users/eps1lon/followers', 'following_url': 'https://api.github.com/users/eps1lon/following{/other_user}', 'gists_url': 'https://api.github.com/users/eps1lon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/eps1lon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/eps1lon/subscriptions', 'organizations_url': 'https://api.github.com/users/eps1lon/orgs', 'repos_url': 'https://api.github.com/users/eps1lon/repos', 'events_url': 'https://api.github.com/users/eps1lon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/eps1lon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18149/builds/15255) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 1fae59aee4392802fbe27690c8540dda0390c2d2:\n\n|Sandbox| Source |\n|--|--|\n|[upbeat-tereshkova-p78ez](https://codesandbox.io/s/upbeat-tereshkova-p78ez)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 1fae59aee4392802fbe27690c8540dda0390c2d2\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 1fae59aee4392802fbe27690c8540dda0390c2d2\n</p>\n",
"Hey @bvaughn is this ok if I ping you to review this? Seems like this concerns more of your work (dev tooling)."
] | 2020-02-27 13:29:48 | 2020-03-17 21:47:53 | 2020-03-17 21:47:25 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18149', 'html_url': 'https://github.com/facebook/react/pull/18149', 'diff_url': 'https://github.com/facebook/react/pull/18149.diff', 'patch_url': 'https://github.com/facebook/react/pull/18149.patch', 'merged_at': datetime.datetime(2020, 3, 17, 21, 47, 25)} | ## Summary
Increases coverage of `getComponentName` to increase likely-hood of #15638 being accepted.
The usages of `getComponentName` that are still uncovered are included in 2979a97af8b12d7842f3824c2ca27cfe0649482b. They either affect react-native (don't know how this is tested), affect messages for possibly internal bugs ("file an issue") or aren't tested to begin with.
It seems like https://github.com/facebook/react/blob/abc8fa964631fa934aaafdaaaae065780d2b1ec1/packages/react-dom/src/server/ReactPartialRenderer.js#L1321 is actually not reachable. Looking at https://github.com/facebook/react/blob/abc8fa964631fa934aaafdaaaae065780d2b1ec1/packages/react-dom/src/server/ReactPartialRenderer.js#L124 it seems like the owner name is forcefully set to null in other cases and I can't find any references to owners in react-dom/server. Looks like owners aren't avaiable in the server renderer and therefore https://github.com/facebook/react/blob/abc8fa964631fa934aaafdaaaae065780d2b1ec1/packages/react-dom/src/server/ReactPartialRenderer.js#L1321 is dead code?
## Test Plan
1. Replace `getComponentName(**)` with `null`
2. If tests pass then mark as `fixme` and push to verify with full CI
2. If tests fail then this line is covered. Everything is fine | {'url': 'https://api.github.com/repos/facebook/react/issues/18149/reactions', 'total_count': 2, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 2, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18149/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18148 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18148/labels{/name} | https://api.github.com/repos/facebook/react/issues/18148/comments | https://api.github.com/repos/facebook/react/issues/18148/events | https://github.com/facebook/react/issues/18148 | 571,947,174 | MDU6SXNzdWU1NzE5NDcxNzQ= | 18,148 | Bug: No matching version found for scheduler@^0.19.0 | {'login': 'musashiM82', 'id': 41707194, 'node_id': 'MDQ6VXNlcjQxNzA3MTk0', 'avatar_url': 'https://avatars.githubusercontent.com/u/41707194?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/musashiM82', 'html_url': 'https://github.com/musashiM82', 'followers_url': 'https://api.github.com/users/musashiM82/followers', 'following_url': 'https://api.github.com/users/musashiM82/following{/other_user}', 'gists_url': 'https://api.github.com/users/musashiM82/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/musashiM82/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/musashiM82/subscriptions', 'organizations_url': 'https://api.github.com/users/musashiM82/orgs', 'repos_url': 'https://api.github.com/users/musashiM82/repos', 'events_url': 'https://api.github.com/users/musashiM82/events{/privacy}', 'received_events_url': 'https://api.github.com/users/musashiM82/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"The registry is always a bit lagging behind. Babel has the same issue. Give it a few hours and it should work. \r\n\r\n[`scheduler@0.19.0`](https://www.npmjs.com/package/scheduler/v/0.19.0) is actually released.",
"I know... I had same issue with babel in the past. \r\nhow many hours should I wait? I cant force to use previous version because I'm installing and building in CI.\r\nthanks",
"It’s definitely on npm. Maybe you’re behind a lagging proxy. Unfortunate this isn’t something we can help with. "
] | 2020-02-27 09:46:22 | 2020-02-27 12:49:46 | 2020-02-27 12:49:45 | NONE | null | null | null | Error "No matching version found for scheduler@^0.19.0" during npm i
React version: 16.8
## The current behavior
<img width="558" alt="Schermata 2020-02-27 alle 10 44 30" src="https://user-images.githubusercontent.com/41707194/75432089-27e71c00-594e-11ea-8998-73366ba262f0.png">
## The expected behavior
install works | {'url': 'https://api.github.com/repos/facebook/react/issues/18148/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18148/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18147 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18147/labels{/name} | https://api.github.com/repos/facebook/react/issues/18147/comments | https://api.github.com/repos/facebook/react/issues/18147/events | https://github.com/facebook/react/issues/18147 | 571,925,585 | MDU6SXNzdWU1NzE5MjU1ODU= | 18,147 | [React DevTools] Bug: Cannot update a component from inside the function body of a different component. | {'login': 'lxsmnsyc', 'id': 4783372, 'node_id': 'MDQ6VXNlcjQ3ODMzNzI=', 'avatar_url': 'https://avatars.githubusercontent.com/u/4783372?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/lxsmnsyc', 'html_url': 'https://github.com/lxsmnsyc', 'followers_url': 'https://api.github.com/users/lxsmnsyc/followers', 'following_url': 'https://api.github.com/users/lxsmnsyc/following{/other_user}', 'gists_url': 'https://api.github.com/users/lxsmnsyc/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/lxsmnsyc/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/lxsmnsyc/subscriptions', 'organizations_url': 'https://api.github.com/users/lxsmnsyc/orgs', 'repos_url': 'https://api.github.com/users/lxsmnsyc/repos', 'events_url': 'https://api.github.com/users/lxsmnsyc/events{/privacy}', 'received_events_url': 'https://api.github.com/users/lxsmnsyc/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"I have this issue too. @LXSMNSYC what was the solution?\r\n\r\n",
"@samparnell apparently when I encountered this \"problem\", I wasn't aware about the changelogs, and so I read it and at the very beginning of the logs: https://reactjs.org/blog/2020/02/26/react-v16.13.0.html, the warning is indicated there.\r\n\r\nTL;DR don't synchronously call `setState` inside other functional components, defer the call to `useEffect`.\r\n\r\nSomething like this yields a warning:\r\n\r\n```jsx\r\nfunction Child({ setState }) {\r\n setState(true);\r\n\r\n return <h1>This is a child.</h1>;\r\n}\r\n\r\nfunction Parent() {\r\n const [state, setState] = useState(false);\r\n\r\n return <Child setState={setState} />;\r\n}\r\n```\r\n\r\nso it should be:\r\n```jsx\r\nfunction Child({ setState }) {\r\n useEffect(() => {\r\n setState(true);\r\n }, [setState]);\r\n return <h1>This is a child.</h1>;\r\n}\r\n```",
"Yeah I have similar issue on a project\r\n\r\nWhat about a setState used in a callback in a child like :\r\n\r\n```js\r\nfunction Child({ callback }) {\r\n return <button onClick={callback}>This is a child.</button>;\r\n}\r\n\r\nfunction Parent() {\r\n const [state, setState] = useState(false);\r\n\r\n const callback = useCallback(() => {\r\n setState(true);\r\n }, []);\r\n\r\n return <Child callback={callback} />;\r\n}\r\n```\r\n\r\n\r\n\r\nIs there a way to avoid raising the warning in this case ?",
"@minirom You're not calling `callback` during render but in an event handler. This [doesn't seem to cause any issues](https://codesandbox.io/s/nervous-pasteur-k8y0i)",
"@eps1lon in my case it does (in my project), so I am a little bit confused.\r\n\r\nthere are a lot of callback like this, I will try to investigate it more and create a new issue when I understand why I have this warning raised with the callbacks",
"> @eps1lon in my case it does (in my project), so I am a little bit confused.\r\n\r\nMe as well since the code you posted did not do what you're describing.",
"Nice one ! with that exchange I found a callback directly called in the component \r\n\r\nI did not noticed that before \r\n\r\nThanks ;)",
"I seem to be hitting a similar issue to @minirom - I am trying to do this from a callback and hit this error. I have a component that is my parent, wrapping Antd's Select component. Here is [quick code sandbox](https://codesandbox.io/s/silly-pike-zwvpb?fontsize=14&hidenavigation=1&theme=dark) to illustrate. \r\nThis seems to be the parent calling a child with an event handler scenario, and it still throws that warning. @eps1lon you seemed to think this shouldn't be an issue, so I am sure I am missing something the way my code is structured. Would love your thoughts. Thanks!",
"Is there another way to get rid of this warning when you don't have the possibility of wrapping the trigger in a useEffect? For example I am using an external library that has an `onChange` callback prop, that I implement and call `setState` in. This external library calls the `onChange` [somewhere in the render cycle](https://github.com/draft-js-plugins/draft-js-plugins/blob/master/draft-js-plugins-editor/src/Editor/index.js#L74) (`componentWillMount`), which in turn causes the warning in my app. What would be the way to fix this in this external class component or in my application?",
"> Is there another way to get rid of this warning when you don't have the possibility of wrapping the trigger in a useEffect? For example I am using an external library that has an `onChange` callback prop, that I implement and call `setState` in. This external library calls the `onChange` [somewhere in the render cycle](https://github.com/draft-js-plugins/draft-js-plugins/blob/master/draft-js-plugins-editor/src/Editor/index.js#L74) (`componentWillMount`), which in turn causes the warning in my app. What would be the way to fix this in this external class component or in my application?\r\n\r\nThe same issue has been submitted to that external library. Await some fix and hope for it to solve your problem 😁 Meanwhile, I think you could defer the setState by means of scheduling i.e. Promise.resolve()",
"@LXSMNSYC thanks! I'll give it a try!",
"@LXSMNSYC for now I found a workaround by putting my state update in a `setTimeout(() => ..)`, and I'll wait for the fix. Thanks!",
"I get this warning for every `useHover` hook implementation I can find, including ones that are using `useCallback` or `useEffect` - which I understand should avoid this warning:\r\n\r\nhttps://codesandbox.io/s/react-issue-18147-i2lu9",
"execute callback , window.addEventListener, history api , etc, inside \"useEffect\" hook",
"那我用ES6类组件写的时候也会出现这个问题,警告和你们说的一模一样,现在问题解决了吗",
"If anyone is following this thread, I have had to do this lots of times in React...\r\nUsing redux, etc. by passing the callback function from the parent...\r\n\r\nYou don't get the error you are talking about because it's the child which ends up running the function, but it is still encapsulated from the parent.\r\n\r\n// PARENT COMPONENT which passes AccountList to Semantic Cards\r\n\r\n```\r\n\tconst globalData = useSelector(state => state.appdata)\r\n\tconst dispatch = useDispatch();\r\n\r\n\t<AccountList \r\n\t\taccounts={accounts} \r\n\r\n\t\t// THIS IS WHERE I PASS THE CALLBACK FROM THE PARENT (WITH the redux stuff needed to dispatch actions)\r\n\t\tinitAccount={(account) => initAccount(globalData, dispatch, Creators, account)\r\n\t\t}\r\n\t/>\r\n\r\n```\r\n\r\n\r\n// \r\n// AccountList\r\n\r\n```\r\n\r\nconst mapAccounts = (accounts, initAccount) => {\r\nconsole.log(initAccount)\r\n\treturn (\r\n\t\taccounts.map(account => {\r\n\t\t\treturn {\r\n\t\t\tas: Link,\r\n\t\t\tto: '/storePage/',\r\n\t\t\t\r\n\t\t\t// This onclick is what creates the route change (and note that it sends in what has changed (the accountID.))\r\n\t\t\t// further note that in the parent I need the dispatch, Creators, and globalData (my state), but only need to pass the account as they are already in the function\r\n\t\t\tonClick: () => initAccount(account.accountID),\r\n\t\t\tstate: { accountID: account.accountID },\r\n\t\t\tchildKey: account.accountID,\r\n\t\t\theader: 'Account: '+account.accountID,\r\n\t\t\tmeta: <Card.Meta style={{color: 'dimgray'}} state={{ accountID: account.accountID, siteTitle: account.siteTitle }}>{12.99}</Card.Meta>,\r\n\t\t\t}\r\n\t\t})\r\n\t)\r\n}\r\n\r\n```\r\n// THIS IS WHERE I SENT THE paramaters in (from the parent... Note it maps through and sends the \r\nfunction to the onClick above...)\r\n\r\n```\r\nexport default ({accounts, initAccount}) => (\r\n <Card.Group items={mapAccounts(accounts, initAccount)} itemsPerRow={1} stackable />\r\n)\r\n\r\n\r\n```\r\n",
"For everyone on this thread, I had this issue and fixed it by following someone's suggestion of adding key to the Picker. That solved the problem for me, all is working great. I used the value from list which is unique. See below:\r\n <RNPickerSelect\r\n key={gStuffID}\r\n onValueChange={value => handleSelectStuff(value)}\r\n placeholder={{ label: 'Select Stuff' }}\r\n items={gStuffList}\r\n style={pickerSelectStyles}\r\n pickerProps={styles.rnPickerProps}\r\n useNativeAndroidPickerStyle={false}\r\n value={gStuffID}\r\n />\r\n",
"I have this issue when updating global state through a redux setter-action from function body of one component to subscriber-component on a different screen, to change 2 sibling components on different screens (React Native). And this innovation in React 13 really sucks, as it breaks the whole pattern of updation. React really started to suck, guys. And no matter what I tried to do - useEffect, etc., this problem persists now after upgrade. IMHO, setting globally state through redux for sibling components should not be an issue. Finally, React is shooting itself in the feet... Back to the previous version is the only solution for now. But what is the future of this, anyways?.. ",
"> I have this issue when updating global state through a redux setter-action from function body of one component to subscriber-component on a different screen, to change 2 sibling components on different screens (React Native). And this innovation in React 13 really sucks, as it breaks the whole pattern of updation. React really started to suck, guys. And no matter what I tried to do - useEffect, etc., this problem persists now after upgrade. IMHO, setting globally state through redux for sibling components should not be an issue. Finally, React is shooting itself in the feet... Back to the previous version is the only solution for now. But what is the future of this, anyways?..\r\n\r\nYou might be confused. This problem only arises in the user-land. The problem does not occur in React, the problem occurs in your implementation."
] | 2020-02-27 09:08:35 | 2020-09-30 17:01:47 | 2020-02-27 12:45:29 | NONE | null | null | null | After updating React to 16.13, I am receiving this error, which is pretty cryptic and only occurs on that update (16.12 works fine)
<img width="639" alt="Screen Shot 2020-02-27 at 5 07 33 PM" src="https://user-images.githubusercontent.com/4783372/75428761-a7431280-5983-11ea-9ad9-f8f6157a485e.png">
Demo can be found here:
https://github.com/LXSMNSYC/react-scoped-model/tree/master/example | {'url': 'https://api.github.com/repos/facebook/react/issues/18147/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18147/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18146 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18146/labels{/name} | https://api.github.com/repos/facebook/react/issues/18146/comments | https://api.github.com/repos/facebook/react/issues/18146/events | https://github.com/facebook/react/issues/18146 | 571,914,085 | MDU6SXNzdWU1NzE5MTQwODU= | 18,146 | Bug: React DevTools ignores displayName on React.memo components | {'login': 'lxender', 'id': 20384895, 'node_id': 'MDQ6VXNlcjIwMzg0ODk1', 'avatar_url': 'https://avatars.githubusercontent.com/u/20384895?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/lxender', 'html_url': 'https://github.com/lxender', 'followers_url': 'https://api.github.com/users/lxender/followers', 'following_url': 'https://api.github.com/users/lxender/following{/other_user}', 'gists_url': 'https://api.github.com/users/lxender/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/lxender/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/lxender/subscriptions', 'organizations_url': 'https://api.github.com/users/lxender/orgs', 'repos_url': 'https://api.github.com/users/lxender/repos', 'events_url': 'https://api.github.com/users/lxender/events{/privacy}', 'received_events_url': 'https://api.github.com/users/lxender/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"Looks like a duplicate of #18026",
"Oh yea, sorry"
] | 2020-02-27 08:46:47 | 2020-02-27 10:52:07 | 2020-02-27 10:52:07 | NONE | null | null | null | Components wrapped in React.memo don't have a display name in the "components" tab of React DevTools.
React version: 16.13
## Steps To Reproduce
1. create a component that uses React.memo
2. name the component using "displayName"
3. open DevTools
4. the component will not use the name from step 2
```jsx
const Test = React.memo(({ message }) => {
return <h1>{message}</h1>;
});
Test.displayName = "Foo"; // Will be displayed as "Anonymous"
function App() {
return (
<Test message="Hi" />
);
}
```
## The current behavior
Memos ignore "displayName" in React DevTools
## The expected behavior
Memos show "displayName" in React DevTools
| {'url': 'https://api.github.com/repos/facebook/react/issues/18146/reactions', 'total_count': 2, '+1': 2, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18146/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18145 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18145/labels{/name} | https://api.github.com/repos/facebook/react/issues/18145/comments | https://api.github.com/repos/facebook/react/issues/18145/events | https://github.com/facebook/react/pull/18145 | 571,760,973 | MDExOlB1bGxSZXF1ZXN0MzgwNTg5Mjg1 | 18,145 | Convert the rest of react-dom and react-test-renderer to Named Exports | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18145/builds/12322) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 5c75e3f40129eed38614059705e694ccbf04cd7b:\n\n|Sandbox| Source |\n|--|--|\n|[dark-cloud-3mwwl](https://codesandbox.io/s/dark-cloud-3mwwl)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60016c448bb7d19fc989acd05dda5aca2e124381...5c75e3f40129eed38614059705e694ccbf04cd7b</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom-unstable-fizz.browser.development.js | -7.0% | -7.1% | 3.61 KB | 3.35 KB | 1.37 KB | 1.27 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **-1.2%** | **-1.3%** | **1.2 KB** | **1.19 KB** | **708 B** | **699 B** | **UMD_PROD**\nreact-dom-test-utils.development.js | +0.2% | -0.0% | 53.69 KB | 53.78 KB | 14.01 KB | 14.01 KB | UMD_DEV\nreact-dom-server.browser.development.js | -0.2% | -0.3% | 138.16 KB | 137.89 KB | 35.19 KB | 35.08 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **-2.3%** | **:small_red_triangle:+0.3%** | **11.22 KB** | **10.96 KB** | **4.16 KB** | **4.17 KB** | **UMD_PROD**\n**react-dom-server.browser.production.min.js** | **-0.0%** | **-0.1%** | **20.45 KB** | **20.44 KB** | **7.49 KB** | **7.49 KB** | **UMD_PROD**\nreact-dom-test-utils.development.js | +0.1% | -0.2% | 49.52 KB | 49.56 KB | 13.55 KB | 13.52 KB | NODE_DEV\nreact-dom-server.browser.development.js | -0.2% | -0.4% | 127.45 KB | 127.17 KB | 33.83 KB | 33.71 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **-1.5%** | **:small_red_triangle:+0.3%** | **10.97 KB** | **10.81 KB** | **4.09 KB** | **4.1 KB** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.1%** | **20.36 KB** | **20.36 KB** | **7.45 KB** | **7.44 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | -0.3% | -0.4% | 59.08 KB | 58.91 KB | 14.75 KB | 14.7 KB | UMD_DEV\nReactTestUtils-dev.js | -0.1% | -0.3% | 51.37 KB | 51.31 KB | 13.75 KB | 13.7 KB | FB_WWW_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **-0.1%** | **:small_red_triangle:+0.1%** | **10.28 KB** | **10.27 KB** | **3.49 KB** | **3.5 KB** | **UMD_PROD**\nReactDOMServer-dev.js | -0.2% | -0.4% | 134.46 KB | 134.18 KB | 34.28 KB | 34.14 KB | FB_WWW_DEV\n**ReactDOMServer-prod.js** | **-3.0%** | **-1.3%** | **48.1 KB** | **46.68 KB** | **10.99 KB** | **10.84 KB** | **FB_WWW_PROD**\nreact-dom-unstable-native-dependencies.development.js | -0.3% | -0.5% | 56.05 KB | 55.87 KB | 14.54 KB | 14.47 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | -6.3% | -7.9% | 3.94 KB | 3.69 KB | 1.46 KB | 1.34 KB | NODE_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **-0.1%** | **-0.3%** | **10 KB** | **10 KB** | **3.39 KB** | **3.38 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **-2.4%** | **-3.2%** | **1.19 KB** | **1.16 KB** | **685 B** | **663 B** | **NODE_PROD**\n**ReactDOM-prod.js** | **0.0%** | **-0.0%** | **370.74 KB** | **370.74 KB** | **67.45 KB** | **67.45 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | 0.0% | -0.0% | 381.95 KB | 381.95 KB | 69.57 KB | 69.57 KB | FB_WWW_PROFILING\nreact-dom-unstable-fizz.browser.development.js | -8.2% | -9.5% | 3.21 KB | 2.95 KB | 1.3 KB | 1.18 KB | NODE_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **-2.7%** | **-3.0%** | **1.03 KB** | **1 KB** | **629 B** | **610 B** | **NODE_PROD**\nreact-dom-testing.development.js | 0.0% | -0.0% | 887.91 KB | 887.91 KB | 195.74 KB | 195.74 KB | UMD_DEV\n**react-dom-testing.production.min.js** | **0.0%** | **-0.0%** | **117.41 KB** | **117.41 KB** | **37.72 KB** | **37.72 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | 0.0% | -0.0% | 869.57 KB | 869.57 KB | 194.5 KB | 194.5 KB | FB_WWW_DEV\nreact-dom-testing.profiling.min.js | 0.0% | -0.0% | 120.94 KB | 120.94 KB | 38.9 KB | 38.89 KB | UMD_PROFILING\nreact-dom-testing.development.js | 0.0% | -0.0% | 841.37 KB | 841.37 KB | 192.18 KB | 192.18 KB | NODE_DEV\nreact-dom-server.node.development.js | -0.1% | -0.2% | 128.57 KB | 128.38 KB | 34.05 KB | 33.97 KB | NODE_DEV\n**react-dom-testing.production.min.js** | **0.0%** | **0.0%** | **117.57 KB** | **117.57 KB** | **37.05 KB** | **37.05 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **-0.2%** | **20.77 KB** | **20.77 KB** | **7.6 KB** | **7.59 KB** | **NODE_PROD**\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-test-renderer.development.js | -0.1% | -0.1% | 554.6 KB | 554.14 KB | 115.42 KB | 115.34 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **-0.0%** | **-0.0%** | **71.14 KB** | **71.13 KB** | **21.62 KB** | **21.62 KB** | **UMD_PROD**\nReactShallowRenderer-dev.js | -0.3% | -0.6% | 34.35 KB | 34.25 KB | 8.45 KB | 8.4 KB | FB_WWW_DEV\nreact-test-renderer.development.js | -0.1% | -0.1% | 524.92 KB | 524.45 KB | 113.1 KB | 113 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **-0.0%** | **-0.0%** | **70.95 KB** | **70.94 KB** | **21.3 KB** | **21.29 KB** | **NODE_PROD**\nReactTestRenderer-dev.js | -0.1% | -0.1% | 551.81 KB | 551.32 KB | 116.23 KB | 116.1 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | -0.3% | -0.5% | 39.27 KB | 39.17 KB | 9.86 KB | 9.81 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **-0.1%** | **-0.2%** | **11.65 KB** | **11.63 KB** | **3.6 KB** | **3.59 KB** | **UMD_PROD**\nreact-test-renderer-shallow.development.js | -0.3% | -0.6% | 32.13 KB | 32.03 KB | 8.41 KB | 8.36 KB | NODE_DEV\n**react-test-renderer-shallow.production.min.js** | **-0.1%** | **-0.2%** | **11.77 KB** | **11.76 KB** | **3.69 KB** | **3.68 KB** | **NODE_PROD**\n\n </details>\n \n\nReactDOM: size: -1.2%, gzip: -1.3%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 5c75e3f40129eed38614059705e694ccbf04cd7b\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60016c448bb7d19fc989acd05dda5aca2e124381...5c75e3f40129eed38614059705e694ccbf04cd7b</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**react-dom-testing.production.min.js** | **0.0%** | **0.0%** | **117.01 KB** | **117.01 KB** | **36.92 KB** | **36.92 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | -0.3% | -0.4% | 59.07 KB | 58.9 KB | 14.75 KB | 14.7 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **-2.7%** | **-3.1%** | **1.02 KB** | **1013 B** | **621 B** | **602 B** | **NODE_PROD**\nreact-dom-testing.profiling.min.js | 0.0% | -0.0% | 120.7 KB | 120.7 KB | 37.97 KB | 37.97 KB | NODE_PROFILING\n**react-dom-unstable-native-dependencies.production.min.js** | **-0.1%** | **:small_red_triangle:+0.1%** | **10.26 KB** | **10.26 KB** | **3.48 KB** | **3.49 KB** | **UMD_PROD**\nReactTestUtils-dev.js | -0.1% | -0.3% | 51.38 KB | 51.31 KB | 13.75 KB | 13.7 KB | FB_WWW_DEV\nreact-dom-unstable-fizz.node.development.js | -6.3% | -8.0% | 3.93 KB | 3.68 KB | 1.45 KB | 1.33 KB | NODE_DEV\nreact-dom.development.js | 0.0% | -0.0% | 885.6 KB | 885.6 KB | 195.2 KB | 195.2 KB | UMD_DEV\nreact-dom-server.browser.development.js | -0.2% | -0.3% | 136.57 KB | 136.3 KB | 34.98 KB | 34.88 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **-2.4%** | **-3.3%** | **1.17 KB** | **1.15 KB** | **676 B** | **654 B** | **NODE_PROD**\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **115.85 KB** | **115.85 KB** | **37.08 KB** | **37.08 KB** | **UMD_PROD**\n**react-dom-server.browser.production.min.js** | **-0.0%** | **-0.1%** | **19.99 KB** | **19.99 KB** | **7.4 KB** | **7.39 KB** | **UMD_PROD**\nreact-dom.development.js | 0.0% | -0.0% | 839.19 KB | 839.19 KB | 191.61 KB | 191.61 KB | NODE_DEV\nreact-dom-server.browser.development.js | -0.2% | -0.4% | 125.94 KB | 125.65 KB | 33.61 KB | 33.49 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **115.93 KB** | **115.93 KB** | **36.45 KB** | **36.45 KB** | **NODE_PROD**\nreact-dom-testing.development.js | 0.0% | -0.0% | 885.56 KB | 885.56 KB | 195.47 KB | 195.47 KB | UMD_DEV\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.2%** | **19.9 KB** | **19.9 KB** | **7.37 KB** | **7.36 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | -7.1% | -7.3% | 3.59 KB | 3.34 KB | 1.36 KB | 1.26 KB | UMD_DEV\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.61 KB | 119.61 KB | 37.51 KB | 37.51 KB | NODE_PROFILING\n**react-dom-testing.production.min.js** | **0.0%** | **-0.0%** | **116.89 KB** | **116.89 KB** | **37.59 KB** | **37.59 KB** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **-1.2%** | **-1.1%** | **1.19 KB** | **1.17 KB** | **699 B** | **691 B** | **UMD_PROD**\nReactDOM-dev.js | 0.0% | -0.0% | 936.45 KB | 936.45 KB | 208.25 KB | 208.25 KB | FB_WWW_DEV\nReactDOMServer-dev.js | -0.2% | -0.4% | 135.38 KB | 135.11 KB | 34.44 KB | 34.3 KB | FB_WWW_DEV\nreact-dom-testing.development.js | 0.0% | -0.0% | 839.13 KB | 839.13 KB | 191.92 KB | 191.92 KB | NODE_DEV\n**ReactDOMServer-prod.js** | **-2.9%** | **-1.0%** | **48.8 KB** | **47.39 KB** | **11.14 KB** | **11.03 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.browser.development.js | -8.2% | -9.5% | 3.2 KB | 2.94 KB | 1.29 KB | 1.17 KB | NODE_DEV\nreact-dom-unstable-native-dependencies.development.js | -0.3% | -0.5% | 56.04 KB | 55.86 KB | 14.53 KB | 14.46 KB | NODE_DEV\nreact-dom-test-utils.development.js | +0.2% | -0.0% | 53.68 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **-0.1%** | **-0.3%** | **9.99 KB** | **9.99 KB** | **3.38 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom-test-utils.production.min.js** | **-2.3%** | **:small_red_triangle:+0.3%** | **11.2 KB** | **10.94 KB** | **4.15 KB** | **4.16 KB** | **UMD_PROD**\nreact-dom-test-utils.development.js | +0.1% | -0.2% | 49.51 KB | 49.55 KB | 13.54 KB | 13.51 KB | NODE_DEV\nreact-dom-server.node.development.js | -0.1% | -0.2% | 127.06 KB | 126.87 KB | 33.83 KB | 33.75 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **-1.5%** | **:small_red_triangle:+0.3%** | **10.96 KB** | **10.79 KB** | **4.08 KB** | **4.09 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **-0.2%** | **20.31 KB** | **20.31 KB** | **7.52 KB** | **7.51 KB** | **NODE_PROD**\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**react-test-renderer.production.min.js** | **-0.0%** | **-0.0%** | **70.92 KB** | **70.92 KB** | **21.28 KB** | **21.27 KB** | **NODE_PROD**\nreact-test-renderer-shallow.development.js | -0.3% | -0.6% | 32.11 KB | 32.01 KB | 8.41 KB | 8.36 KB | NODE_DEV\n**react-test-renderer-shallow.production.min.js** | **-0.1%** | **-0.2%** | **11.75 KB** | **11.74 KB** | **3.68 KB** | **3.67 KB** | **NODE_PROD**\nReactShallowRenderer-dev.js | -0.3% | -0.6% | 34.35 KB | 34.25 KB | 8.45 KB | 8.4 KB | FB_WWW_DEV\nreact-test-renderer.development.js | -0.1% | -0.1% | 554.58 KB | 554.12 KB | 115.41 KB | 115.33 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **-0.0%** | **-0.0%** | **71.11 KB** | **71.1 KB** | **21.61 KB** | **21.6 KB** | **UMD_PROD**\nreact-test-renderer.development.js | -0.1% | -0.1% | 524.89 KB | 524.42 KB | 113.09 KB | 112.99 KB | NODE_DEV\nReactTestRenderer-dev.js | -0.1% | -0.1% | 551.8 KB | 551.31 KB | 116.23 KB | 116.1 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | -0.3% | -0.5% | 39.26 KB | 39.16 KB | 9.85 KB | 9.8 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **-0.1%** | **-0.2%** | **11.63 KB** | **11.62 KB** | **3.59 KB** | **3.58 KB** | **UMD_PROD**\n\n </details>\n \n\nReactDOM: size: -0.1%, gzip: :small_red_triangle:+0.1%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 5c75e3f40129eed38614059705e694ccbf04cd7b\n</p>\n",
"https://github.com/sebmarkbage/react-builds/commit/fb86179870227b6cc489fa325208aaba1acf5c02",
"beautiful"
] | 2020-02-27 01:25:20 | 2020-02-27 02:07:28 | 2020-02-27 02:04:33 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18145', 'html_url': 'https://github.com/facebook/react/pull/18145', 'diff_url': 'https://github.com/facebook/react/pull/18145.diff', 'patch_url': 'https://github.com/facebook/react/pull/18145.patch', 'merged_at': datetime.datetime(2020, 2, 27, 2, 4, 33)} | Nothing interesting here except that ReactShallowRenderer currently exports a class with a static method instead of an object.
I think the public API is probably just meant to be createRenderer but currently the whole class is exposed. So this means that we have to keep it as default export. We could potentially also expose a named export for createRenderer but that's going to cause compatibility issues.
So I'm just going to make that export default.
Unfortunately Rollup and Babel (which powers Jest) disagree on how to import this. So to make it work I had to move the jest tests to imports.
This doesn't work with module resetting. Some tests weren't doing that anyway and the rest is just testing ReactShallowRenderer so meh.
Also see https://github.com/facebook/react/pull/18144 | {'url': 'https://api.github.com/repos/facebook/react/issues/18145/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18145/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18144 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18144/labels{/name} | https://api.github.com/repos/facebook/react/issues/18144/comments | https://api.github.com/repos/facebook/react/issues/18144/events | https://github.com/facebook/react/pull/18144 | 571,748,743 | MDExOlB1bGxSZXF1ZXN0MzgwNTc5Nzcy | 18,144 | Replace ReactShallowRenderer with a dependency | {'login': 'NMinhNguyen', 'id': 2852660, 'node_id': 'MDQ6VXNlcjI4NTI2NjA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/2852660?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/NMinhNguyen', 'html_url': 'https://github.com/NMinhNguyen', 'followers_url': 'https://api.github.com/users/NMinhNguyen/followers', 'following_url': 'https://api.github.com/users/NMinhNguyen/following{/other_user}', 'gists_url': 'https://api.github.com/users/NMinhNguyen/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/NMinhNguyen/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/NMinhNguyen/subscriptions', 'organizations_url': 'https://api.github.com/users/NMinhNguyen/orgs', 'repos_url': 'https://api.github.com/users/NMinhNguyen/repos', 'events_url': 'https://api.github.com/users/NMinhNguyen/events{/privacy}', 'received_events_url': 'https://api.github.com/users/NMinhNguyen/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18144/builds/12331) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit f3d4d565c466040a8e8244d387713792f60532ff:\n\n|Sandbox| Source |\n|--|--|\n|[jovial-euler-ie6ce](https://codesandbox.io/s/jovial-euler-ie6ce)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: f9c0a454415172433b8b94eec94fc36b2461065c...f3d4d565c466040a8e8244d387713792f60532ff</p>\n\n\n \n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactTestRenderer-dev.js | 0.0% | -0.0% | 551.32 KB | 551.32 KB | 116.1 KB | 116.1 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | +1.0% | -3.2% | 39.17 KB | 39.55 KB | 9.81 KB | 9.49 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **:small_red_triangle:+10.9%** | **:small_red_triangle:+9.6%** | **11.63 KB** | **12.9 KB** | **3.59 KB** | **3.93 KB** | **UMD_PROD**\nreact-test-renderer-shallow.development.js | -98.5% | -96.1% | 32.03 KB | 491 B | 8.36 KB | 331 B | NODE_DEV\n**react-test-renderer-shallow.production.min.js** | **-97.0%** | **-92.9%** | **11.76 KB** | **358 B** | **3.68 KB** | **266 B** | **NODE_PROD**\nReactShallowRenderer-dev.js | -98.8% | -96.5% | 34.25 KB | 438 B | 8.4 KB | 297 B | FB_WWW_DEV\nreact-test-renderer.development.js | 0.0% | 0.0% | 524.45 KB | 524.45 KB | 113 KB | 113 KB | NODE_DEV\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against f3d4d565c466040a8e8244d387713792f60532ff\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: f9c0a454415172433b8b94eec94fc36b2461065c...f3d4d565c466040a8e8244d387713792f60532ff</p>\n\n\n \n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**react-test-renderer-shallow.production.min.js** | **-97.1%** | **-93.1%** | **11.74 KB** | **345 B** | **3.67 KB** | **258 B** | **NODE_PROD**\nReactTestRenderer-dev.js | 0.0% | -0.0% | 551.31 KB | 551.31 KB | 116.1 KB | 116.1 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | +1.0% | -3.2% | 39.16 KB | 39.53 KB | 9.8 KB | 9.49 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **:small_red_triangle:+10.9%** | **:small_red_triangle:+9.7%** | **11.62 KB** | **12.88 KB** | **3.58 KB** | **3.93 KB** | **UMD_PROD**\nreact-test-renderer-shallow.development.js | -98.5% | -96.2% | 32.01 KB | 478 B | 8.35 KB | 323 B | NODE_DEV\nReactShallowRenderer-dev.js | -98.8% | -96.5% | 34.25 KB | 438 B | 8.4 KB | 297 B | FB_WWW_DEV\nreact-test-renderer.development.js | 0.0% | 0.0% | 524.42 KB | 524.42 KB | 112.99 KB | 112.99 KB | NODE_DEV\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against f3d4d565c466040a8e8244d387713792f60532ff\n</p>\n",
"When comparing the bundles, I noticed that `getComponentName` has changed since I first extracted the code about a month ago due to https://github.com/facebook/react/pull/18086. I'm wondering if there's a better way to keep the two in sync 😕 ",
"To be fair, adding support for new component types (if even desired) will be a more likely blocker than non-ideal getComponentName names. I don't even think getComponentName is that useful when the stack is almost flat.",
"For now, I can sync my fork with the new Block type and cut another release. `16.12.1`? `16.13.0`?",
"To avoid the versioning awkwardness, we can make it `20.0.0` and pretend this never happened.",
"Blocks are an experiment and definitely don't make sense in the context of shallow rendering. So feel free to ignore them.",
"I think this looks good. I’ll check tomorrow. ",
"> I've tested this in a fresh CRA project and also at FB and couldn't find any issues.\r\n\r\nJust wondering what kinds of tests you ran exactly, so I could try and run them myself for future releases of the package (maybe even have them run on CI).",
"For fresh CRA, I just copy pasted the docs snippet and verified it still passes tests — whether I write ESM+Babel or CJS+require.",
"Cool, thanks! But be careful with assumptions about ESM - as far as I know, Jest doesn't support ESM (https://github.com/facebook/jest/issues/4842), so what it ends up importing is the CJS version anyway. In other words, it doesn't matter what syntax you use at the call site (in your tests).",
"@NMinhNguyen The syntax matters because using the `import` syntax adds a compatibility check at runtime that looks for `esModule`.\r\n\r\nThe problem is that we run Jest against both against source as it is. In this case Jest (Babel) is responsible for converting the `export ....` part to CommonJS. We also run Jest against an existing bundle and in that case Rollup built the bundle. We couldn't use just `require(...)` in our tests because that didn't add the interop layer that made it work with both.\r\n\r\nHowever, now we won't run tests against the source any more. Just the bundle published to npm. So we don't need that compatibility anymore. So now we probably could revert the changes I made to the tests in https://github.com/facebook/react/pull/18145",
"@sebmarkbage sorry if I'm misunderstanding, but in CRA which points at the published `react-shallow-renderer` package, I think Jest would pick up the CJS bundle (also built with Rollup) which has no `esModule` (https://unpkg.com/browse/react-shallow-renderer@16.12.0/cjs/react-shallow-renderer.js), so the `import` syntax in the test shouldn't matter, right?"
] | 2020-02-27 00:46:57 | 2020-02-27 19:47:25 | 2020-02-27 18:10:26 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18144', 'html_url': 'https://github.com/facebook/react/pull/18144', 'diff_url': 'https://github.com/facebook/react/pull/18144.diff', 'patch_url': 'https://github.com/facebook/react/pull/18144.patch', 'merged_at': datetime.datetime(2020, 2, 27, 18, 10, 26)} | Closes #17321.
<!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.
Before submitting a pull request, please make sure the following is done:
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
9. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
10. If you haven't already, complete the CLA.
Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->
## Summary
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
I've extracted the shallow renderer out into its own package - http://npm.im/react-shallow-renderer https://github.com/NMinhNguyen/react-shallow-renderer
As discussed with @gaearon on Twitter, I didn't bother with DEV/PROD builds - the UMD build is essentially a [DEV build](https://unpkg.com/browse/react-shallow-renderer@16.12.0/umd/react-shallow-renderer.js), and [CJS](https://unpkg.com/browse/react-shallow-renderer@16.12.0/cjs/react-shallow-renderer.js) and [ES](https://unpkg.com/browse/react-shallow-renderer@16.12.0/esm/react-shallow-renderer.js) just have `process.env.NODE_ENV` checks inline.
## Test Plan
<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. -->
CI | {'url': 'https://api.github.com/repos/facebook/react/issues/18144/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18144/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18143 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18143/labels{/name} | https://api.github.com/repos/facebook/react/issues/18143/comments | https://api.github.com/repos/facebook/react/issues/18143/events | https://github.com/facebook/react/pull/18143 | 571,641,815 | MDExOlB1bGxSZXF1ZXN0MzgwNDkxMzg3 | 18,143 | update version numbers for 16.13 | {'login': 'threepointone', 'id': 18808, 'node_id': 'MDQ6VXNlcjE4ODA4', 'avatar_url': 'https://avatars.githubusercontent.com/u/18808?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/threepointone', 'html_url': 'https://github.com/threepointone', 'followers_url': 'https://api.github.com/users/threepointone/followers', 'following_url': 'https://api.github.com/users/threepointone/following{/other_user}', 'gists_url': 'https://api.github.com/users/threepointone/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/threepointone/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/threepointone/subscriptions', 'organizations_url': 'https://api.github.com/users/threepointone/orgs', 'repos_url': 'https://api.github.com/users/threepointone/repos', 'events_url': 'https://api.github.com/users/threepointone/events{/privacy}', 'received_events_url': 'https://api.github.com/users/threepointone/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18143/builds/12289) or the icon next to each commit SHA.",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against ca66ce7a9d5ab7466c66aea3c71442f673eecd7f\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against ca66ce7a9d5ab7466c66aea3c71442f673eecd7f\n</p>\n",
"Did this break the build? When I pull this down I get error\r\n\r\n`No matching version found for scheduler@^0.19.0`\r\n\r\nand when I `npm install scheduler` i only get 0.18.0",
"probably a cache issue, since 0.19.0 is definitely up on npm https://www.npmjs.com/package/scheduler"
] | 2020-02-26 20:32:43 | 2020-02-27 16:46:46 | 2020-02-26 20:33:29 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18143', 'html_url': 'https://github.com/facebook/react/pull/18143', 'diff_url': 'https://github.com/facebook/react/pull/18143.diff', 'patch_url': 'https://github.com/facebook/react/pull/18143.patch', 'merged_at': datetime.datetime(2020, 2, 26, 20, 33, 29)} | also includes a bugfix when downloading error codes from circleci.
[merging this right now, tagging reviewers just in case]
| {'url': 'https://api.github.com/repos/facebook/react/issues/18143/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18143/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18142 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18142/labels{/name} | https://api.github.com/repos/facebook/react/issues/18142/comments | https://api.github.com/repos/facebook/react/issues/18142/events | https://github.com/facebook/react/issues/18142 | 571,621,778 | MDU6SXNzdWU1NzE2MjE3Nzg= | 18,142 | Bug: ENOTFOUND -3008 on react-scripts start without root permissions | {'login': 'NathanPB', 'id': 18128642, 'node_id': 'MDQ6VXNlcjE4MTI4NjQy', 'avatar_url': 'https://avatars.githubusercontent.com/u/18128642?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/NathanPB', 'html_url': 'https://github.com/NathanPB', 'followers_url': 'https://api.github.com/users/NathanPB/followers', 'following_url': 'https://api.github.com/users/NathanPB/following{/other_user}', 'gists_url': 'https://api.github.com/users/NathanPB/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/NathanPB/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/NathanPB/subscriptions', 'organizations_url': 'https://api.github.com/users/NathanPB/orgs', 'repos_url': 'https://api.github.com/users/NathanPB/repos', 'events_url': 'https://api.github.com/users/NathanPB/events{/privacy}', 'received_events_url': 'https://api.github.com/users/NathanPB/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"Please file this in https://github.com/facebook/create-react-app/."
] | 2020-02-26 19:58:31 | 2020-02-26 21:10:36 | 2020-02-26 21:10:35 | NONE | null | null | null | <!--
Please provide a clear and concise description of what the bug is. Include
screenshots if needed. Please test using the latest version of the relevant
React packages to make sure your issue has not already been fixed.
-->
When I try to run ``react-scripts start`` in a react project the command crashes immediately. If I run it with root permissions then the command just succeeds and works as expected. Running with sudo every time is quite boring. It also messes up my ``nvm`` environment and doesn't let me use my IDE debugger.
React version: 16.12.0
## Steps To Reproduce
1. Run ``$ npx create-react-app hello-world``
2. Run ``$ cd hello-world``
3. Run ``$ npm start`` or ``$ react-scripts start`` (If ran with sudo it just works)
4. Face the crash
Since this is a platform specific issue, I'm leaving all the important specifications here:
Please ask if you need some other information
- OS: ``OpenSUSE Tumbleweed 20200214``
- Kernel Version: ``linux 5.5.4`` (I'm facing this issue for months actually, so previous versions are included)
- Bash Version: ``GNU bash, version 5.0.11(1)-release (x86_64-suse-linux-gnu)``
- Node Version: ``v10.16.1`` (Tested with several major versions, including v9, v10, v12, v13)
- My ``$ env`` (separated GIST because Its pretty long): https://gist.github.com/NathanPB/18861c712b22ad392e172bc3388a575a
I don't now if that's important, but I use ``nvm`` to manage the node installations
<!--
Your bug will get fixed much faster if we can run your code and it doesn't
have dependencies other than React. Issues without reproduction steps or
code examples may be immediately closed as not actionable.
-->
Link to code example: Not Applicable
<!--
Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
repository on GitHub, or provide a minimal code example that reproduces the
problem. You may provide a screenshot of the application if you think it is
relevant to your bug report. Here are some tips for providing a minimal
example: https://stackoverflow.com/help/mcve.
-->
## The current behavior
It crashes with the following output:
```
nathan@linux-kpfq: ~/Projects/hello-world> react-scripts start
Attempting to bind to HOST environment variable: linux-kpfq
If this was unintentional, check that you haven't mistakenly set it in your shell.
Learn more here: https://bit.ly/CRA-advanced-config
events.js:196
throw er; // Unhandled 'error' event
^
Error: getaddrinfo ENOTFOUND linux-kpfq
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:26)
Emitted 'error' event on Server instance at:
at GetAddrInfoReqWrap.doListen [as callback] (net.js:1492:12)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:64:17) {
errno: -3008,
code: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'linux-kpfq'
}
```
## The expected behavior
The command should run without needing root permissions. | {'url': 'https://api.github.com/repos/facebook/react/issues/18142/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18142/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18141 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18141/labels{/name} | https://api.github.com/repos/facebook/react/issues/18141/comments | https://api.github.com/repos/facebook/react/issues/18141/events | https://github.com/facebook/react/issues/18141 | 571,618,853 | MDU6SXNzdWU1NzE2MTg4NTM= | 18,141 | Bug: [Sync mode] Effects are not re-run after suspense completes | {'login': '1000hz', 'id': 1395018, 'node_id': 'MDQ6VXNlcjEzOTUwMTg=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1395018?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/1000hz', 'html_url': 'https://github.com/1000hz', 'followers_url': 'https://api.github.com/users/1000hz/followers', 'following_url': 'https://api.github.com/users/1000hz/following{/other_user}', 'gists_url': 'https://api.github.com/users/1000hz/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/1000hz/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/1000hz/subscriptions', 'organizations_url': 'https://api.github.com/users/1000hz/orgs', 'repos_url': 'https://api.github.com/users/1000hz/repos', 'events_url': 'https://api.github.com/users/1000hz/events{/privacy}', 'received_events_url': 'https://api.github.com/users/1000hz/received_events', 'type': 'User', 'site_admin': False} | [{'id': 40929156, 'node_id': 'MDU6TGFiZWw0MDkyOTE1Ng==', 'url': 'https://api.github.com/repos/facebook/react/labels/Resolution:%20Wontfix', 'name': 'Resolution: Wontfix', 'color': 'ffffff', 'default': False, 'description': None}
{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"cc @lunaruan in case this ties into the hidden stuff any.",
"My understanding is that this is **not possible to fix in the legacy (`ReactDOM.render`) mode**. Sorry. It's a quirk of the legacy mode which we can't fix without introducing other breaking changes. This is **solved in Blocking Mode and Concurrent Mode**, but they are only available in [experimental releases](https://reactjs.org/docs/concurrent-mode-adoption.html) for now.",
"This is fixed in React 18.\r\n\r\nhttps://codesandbox.io/s/admiring-forest-tsnnbq?file=/src/index.js\r\n\r\nYou need to upgrade to `createRoot()` for the fix to work."
] | 2020-02-26 19:53:30 | 2022-03-29 22:43:48 | 2020-02-26 21:19:03 | NONE | null | null | null | As reported in #14536, React mounts suspended components to the DOM with `display:none` and fires effects before the components are visible. Once suspense has completed, effects are not re-run. This means that any component that reads layout info from the DOM becomes visible with content based on a stale layout.
React version: 16.12.0
## Steps To Reproduce
1. Create a component that reads layout info from the DOM
2. Render that component in a suspense alongside a lazy component
Link to code example: https://codesandbox.io/s/busy-jang-75wmf
## The current behavior
The layout-dependent component is rendered incorrectly based on when it was still invisible.
## The expected behavior
The layout-dependent component should render correctly regardless of whether or not siblings are lazy and caused suspense. | {'url': 'https://api.github.com/repos/facebook/react/issues/18141/reactions', 'total_count': 1, '+1': 1, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18141/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18140 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18140/labels{/name} | https://api.github.com/repos/facebook/react/issues/18140/comments | https://api.github.com/repos/facebook/react/issues/18140/events | https://github.com/facebook/react/pull/18140 | 571,610,610 | MDExOlB1bGxSZXF1ZXN0MzgwNDY1OTU1 | 18,140 | Option to use devtools with csp | {'login': 'ruslan-shuster', 'id': 58134692, 'node_id': 'MDQ6VXNlcjU4MTM0Njky', 'avatar_url': 'https://avatars.githubusercontent.com/u/58134692?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/ruslan-shuster', 'html_url': 'https://github.com/ruslan-shuster', 'followers_url': 'https://api.github.com/users/ruslan-shuster/followers', 'following_url': 'https://api.github.com/users/ruslan-shuster/following{/other_user}', 'gists_url': 'https://api.github.com/users/ruslan-shuster/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/ruslan-shuster/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/ruslan-shuster/subscriptions', 'organizations_url': 'https://api.github.com/users/ruslan-shuster/orgs', 'repos_url': 'https://api.github.com/users/ruslan-shuster/repos', 'events_url': 'https://api.github.com/users/ruslan-shuster/events{/privacy}', 'received_events_url': 'https://api.github.com/users/ruslan-shuster/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775957182, 'node_id': 'MDU6TGFiZWwxNzc1OTU3MTgy', 'url': 'https://api.github.com/repos/facebook/react/labels/Resolution:%20Stale', 'name': 'Resolution: Stale', 'color': 'e6e6e6', 'default': False, 'description': 'Automatically closed due to inactivity'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18140/builds/12286) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 9ffef2107173150f4cac2a1c84e610f6ee0c1e27:\n\n|Sandbox| Source |\n|--|--|\n|[zen-pike-ixx08](https://codesandbox.io/s/zen-pike-ixx08)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 9ffef2107173150f4cac2a1c84e610f6ee0c1e27\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 9ffef2107173150f4cac2a1c84e610f6ee0c1e27\n</p>\n",
"Can we link to some way for the person to verify the hash actually matches our code?",
"> Can we link to some way for the person to verify the hash actually matches our code?\r\n\r\nThere is some problem with it, because the code is being constructed from different pieces concatenated together: https://github.com/facebook/react/blob/08c1f79e1e13719ae2b79240bbd8f97178ddd791/packages/react-devtools-extensions/src/injectGlobalHook.js#L92. If I include the reference to this line to the README, it still gives nothing to the users, because they cannot just see the code which was used to generate the hash. \r\n\r\nWe may also try to generate the global hook code string at the build time, and then import and use it... This way it will be easier to refer to it. What do you think?",
"> Can we link to some way for the person to verify the hash actually matches our code?\r\n\r\nThis was the concern I raised.\r\n\r\nIt looks like [the hook source changes pretty infrequently](https://github.com/facebook/react/commits/master/packages/react-devtools-shared/src/hook.js), but we are unlikely to remember to update a README like this if we change it down the road.\r\n\r\n### Option 1: ReactJS.org\r\n\r\nMaybe we could store the hash at build time like @ruslan-shuster says, and add an endpoint to reactjs.org that pulls it from GitHub (like it pulls the error codes) and displays some copy-pasteable thing for people to add?\r\n\r\nWe'd still have to remember to update reactjs.org to do this, but that probably gets updated enough on its own that the window of time when the two were out of sync wouldn't be too big.\r\n\r\n### Option 2: README\r\n\r\nThere's also the fact that rollouts to different browser stores take wildly different times. Firefox usually approves new extensions within minutes, where as Chrome now takes weeks. (So if we changed the hook, there would be a period of time when our messaging would be wrong one way or another.)\r\n\r\nWe could have the README show different hashes by versions. If we stored the most recently built-and-published hash, then the DevTools build script could print a big bold reminder (if it ever changes) letting person know to add a new entry to the README.\r\n\r\n### Option 3: Add the hash to DevTools setting UI\r\n\r\nDevTools settings UI currently shows the revision it was built from inline:\r\n<img width=\"417\" alt=\"Screen Shot 2020-03-04 at 9 50 14 AM\" src=\"https://user-images.githubusercontent.com/29597/75907681-92d89d00-5dfd-11ea-8021-dcbb63858501.png\">\r\n\r\nWe could add another section that shows the CSP hash needed. Then our README could just say \"look at DevTools to find the hash you should add for the current version\". That way, at least, we could just auto-update this value anytime we build and release a new version (and we'd never have to remember to update external documentation).\r\n\r\n**I think option 3 seems the most promising. What do you think?**",
"@bvaughn the third one indeed seems the most elegant and convenient. I'll start working on it and see how it looks. I think I should use some crypto library to generate sha256, since JS does not have such functionality in the standard library. Do you have any preferences on this one? Maybe Facebook has something open-sourced?",
"Cool. Thanks @ruslan-shuster.\r\n\r\nI think Node's [built-in `crypto` module](https://nodejs.org/api/crypto.html) should be [capable of doing this](https://nodejs.org/api/crypto.html#crypto_class_hash) so maybe we can just use it?",
"Thanks @bvaughn, it might work! \r\n\r\nThe only problem is that the hook resides in the `esm`-style module, and the build is running as cjs. Any common pattern how to overcome it? I was trying to find something like this in the React code base, but I did not succeed with that. I used https://www.npmjs.com/package/esm-to-cjs for similar case in other projects, but I'm pretty sure you don't want to introduce such dependency.\r\n\r\nAs I understand it, we need to import the hook code from injectGlobalHook at the build stage, generate a hash and export it as a 'process.env.GLOBAL_HOOK_HASH', so that we can use it just the same as build version.",
"Sorry @ruslan-shuster, I missed this comment somehow.\r\n\r\n> As I understand it, we need to import the hook code from injectGlobalHook at the build stage, generate a hash and export it as a 'process.env.GLOBAL_HOOK_HASH', so that we can use it just the same as build version.\r\n\r\nThat sounds right to me.\r\n\r\nOur build script already does this and stores the artifact at e.g. `packages/react-devtools-extensions/chrome/build/unpacked/build/injectGlobalHook.js`\r\n\r\nCan we just use that? :smile:",
"@bvaughn I don't see the way how we could use it from the [packages/react-devtools-extensions/webpack.config.js](https://github.com/facebook/react/blob/master/packages/react-devtools-extensions/webpack.config.js#L17). We cannot import the file you've mentioned for two reasons:\r\n1) It is generated by the build, thus does not exist before the build, and this is exactly when we need to generate a hash from the hook. \r\n2) The name of the hook variable is being minified, so we cannot rely on it.\r\n\r\nI assume that the variable holding the code of the hook will reside [packages/react-devtools-extensions/src/injectGlobalHook.js](https://github.com/facebook/react/blob/master/packages/react-devtools-extensions/src/injectGlobalHook.js), and should be somehow imported at the build phase from here.",
"> 1. It is generated by the build, thus does not exist before the build...\r\n\r\nWhy can't we run part of the build twice? (Or split it into steps?)\r\n\r\nUnfortunately I don't have time to dig into this and think about it right now. Too much context switching 😦 I'm sorry!",
"This pull request has been automatically marked as stale. **If this pull request is still relevant, please leave any comment** (for example, \"bump\"), and we'll keep it open. We are sorry that we haven't been able to prioritize reviewing it yet. Your contribution is very much appreciated.\n",
"Closing this pull request after a prolonged period of inactivity. If this issue is still present in the latest release, please ask for this pull request to be reopened. Thank you!\n"
] | 2020-02-26 19:37:42 | 2020-07-25 07:05:47 | 2020-07-25 07:05:47 | NONE | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18140', 'html_url': 'https://github.com/facebook/react/pull/18140', 'diff_url': 'https://github.com/facebook/react/pull/18140.diff', 'patch_url': 'https://github.com/facebook/react/pull/18140.patch', 'merged_at': None} | <!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.
Before submitting a pull request, please make sure the following is done:
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
9. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
10. If you haven't already, complete the CLA.
Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->
## Summary
Currently, __REACT_DEVTOOLS_GLOBAL_HOOK__ is being injected to the window through adding <script> tag to the web page, since it's the easiest cross-platform way to interact with web page environment. However, there are some users who restrict possible sources for scripts via Content Security Policy, but still want their web page to interact with `react-devtools`. The solution proposed here uses the possibility to whitelist webhook mounting script by its hash (see more [here](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src)). Solves the issue [described here](https://github.com/facebook/react/issues/17997).
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. -->
| {'url': 'https://api.github.com/repos/facebook/react/issues/18140/reactions', 'total_count': 2, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 2, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18140/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18139 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18139/labels{/name} | https://api.github.com/repos/facebook/react/issues/18139/comments | https://api.github.com/repos/facebook/react/issues/18139/events | https://github.com/facebook/react/issues/18139 | 571,585,564 | MDU6SXNzdWU1NzE1ODU1NjQ= | 18,139 | Bug: componentDidMount fires before lazy-loaded components are mounted | {'login': 'logan2z', 'id': 16979104, 'node_id': 'MDQ6VXNlcjE2OTc5MTA0', 'avatar_url': 'https://avatars.githubusercontent.com/u/16979104?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/logan2z', 'html_url': 'https://github.com/logan2z', 'followers_url': 'https://api.github.com/users/logan2z/followers', 'following_url': 'https://api.github.com/users/logan2z/following{/other_user}', 'gists_url': 'https://api.github.com/users/logan2z/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/logan2z/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/logan2z/subscriptions', 'organizations_url': 'https://api.github.com/users/logan2z/orgs', 'repos_url': 'https://api.github.com/users/logan2z/repos', 'events_url': 'https://api.github.com/users/logan2z/events{/privacy}', 'received_events_url': 'https://api.github.com/users/logan2z/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"Maybe do this instead?\r\nThe callback is executed when the lazy SomeComponent is mounted.\r\n\r\n```jsx\r\nconst SomeComponent = React.lazy(() => import(\"./SomeComponent\"));\r\n\r\nclass Comp extends React.Component {\r\n someComponentMounted(el) {\r\n el.blur();\r\n }\r\n\r\n render() {\r\n return (\r\n <Suspense fallback={<div>Loading...</div>}>\r\n <SomeComponent\r\n ref={el => {\r\n this.someComponentMounted(el);\r\n }}\r\n />\r\n </Suspense>\r\n );\r\n }\r\n}\r\n\r\n```",
"Not really a bug but it is always implied that the suspended component will always fail first due to asynchronicity and so `Suspense` will always render the fallback, hence the render method is successful (since the pending/failing component is handled gracefully) then the `componentDidMount` is called. This is certainly the intended behavior.",
"> Maybe do this instead?\r\n> The callback is executed when the lazy SomeComponent is mounted.\r\n> \r\n> ```js-jsx\r\n> const SomeComponent = React.lazy(() => import(\"./SomeComponent\"));\r\n> \r\n> class Comp extends React.Component {\r\n> someComponentMounted(el) {\r\n> el.blur();\r\n> }\r\n> \r\n> render() {\r\n> return (\r\n> <Suspense fallback={<div>Loading...</div>}>\r\n> <SomeComponent\r\n> ref={el => {\r\n> this.someComponentMounted(el);\r\n> }}\r\n> />\r\n> </Suspense>\r\n> );\r\n> }\r\n> }\r\n> ```\r\n\r\nThanks. I understand that I could use a callback ref to get a reference to the component once it mounts. But there are cases where there is a significant amount of logic in componentDidMount that spans child components and it would be very awkward to try and split it up into separate callbacks. \r\n\r\nI think that providing some way to determine when all of the child components are finally mounted would make it much easier for existing code to introduce the use of lazy loaded components.",
"> Not really a bug but it is always implied that the suspended component will always fail first due to asynchronicity and so `Suspense` will always render the fallback, hence the render method is successful (since the pending/failing component is handled gracefully) then the `componentDidMount` is called. This is certainly the intended behavior.\r\n\r\nLogically I understand the design and that - technically speaking - one could consider the Suspense component mounted once the fallback is rendered, so there is some justification for calling componentDidMount. But previously, componentDidMount wasn't called until all of the child components were mounted, not just the root component. So it seems the semantics of componentDidMount changed in the face of lazy loaded components. And if that's a design choice made by the React team then that's fine. But I still think there should be some way for a component to know when it's render() method has successfully rendered _all_ child components so that it can perform any necessary logic on those child components in one place. \r\n\r\nClearly I don't know as much about the design of React as its implementors, but it seems as though it would have been simple to just leave the semantics of componentDidMount alone so that it is only called once all components are mounted - whether or not they are lazy. If any component-specific logic was to be executed, it could still be encapsulated using a callback ref. \r\n\r\nI only see upside in leaving componentDidMount semantics as they were before the introduction of React.lazy/Suspense. It would certainly make adoption of React.lazy in existing code much easier.",
"@logan2z and componentDidUpdate?",
"Well the thing is, React couldn't really poll for these components to be ready, and so they only commit if all of the components are have committed their updates. If they were and if `componentDidMount` awaits the suspending component, then the whole app would be suspended as well (given that at least one single component is being awaited to be resolved.), you can't really have a \"synchronized\" way of accessing the host instance (the DOM instance) on commit phase if the component is still loading.\n\nI would really suggest the `ref` callback for capturing host instances.",
"The described behavior is indeed working as designed. `componentDidMount` is called **when a specific component mounts**, regardless of what/when its descendants mount\r\n\r\n> I only see upside in **leaving componentDidMount semantics as they were before** the introduction of React.lazy/Suspense. It would certainly make adoption of React.lazy in existing code much easier.\r\n\r\nThis is what we did. The previous solution for lazy-loading anything (data, component, whatever) was to **first mount** (i.e. `componentDidMount`), then fetch, then update state (to re-render) when the fetch completed.\r\n\r\nThe specific solution on how to check when your lazy-loaded data/dependency finishes loading probably depends on your application code. A ref callback function seems like one reasonable way of doing this.",
"Yeah there's not much we can do here. If we did like you described (e.g. wait for all child components) then this would cut out a huge amount of use cases — e.g. focusing a text field like\r\n\r\n```js\r\n<>\r\n <input />\r\n <SomethingThatContainsLazyCodeDeepInside />\r\n</>\r\n```\r\n\r\nand it would always be dangerous to add `lazy` deeply because that would break assumptions.\r\n\r\n**In general**, `findDOMNode` is not a recommended pattern anyway — whether in `componentDidMount` or anywhere else. This is precisely because you won't get notified about what arbitrary children do. You can use callback refs for this instead."
] | 2020-02-26 18:50:31 | 2020-03-16 20:57:34 | 2020-03-16 20:57:34 | NONE | null | null | null | In a component with child components that are lazy loaded using React.lazy, the component's componendDidMount() callback is fired before the lazy-loaded children are loaded/mounted. This makes it very difficult to perform logic on child components (eg. calling a component method via a ref, using ReactDOM.findDOMNode on the children, etc.) in componentDidMount. This all obviously works fine with components that are synchronously loaded but makes it very difficult to migrate an existing React application using synchronously loaded components to one that leverages React.lazy.
This behavior is observed with React version 16.12.
The issue can be illustrated with code like this:
```
import React, {Suspense} from 'react';
import ReactDOM from 'react-dom';
const SomeComponent = React.lazy(() => import("./SomeComponent"));
class Comp extends React.Component {
constructor() {
super();
this.compRef = React.createRef();
}
componentDidMount() {
this.compRef.current.blur();
}
render() {
return
<Suspense fallback={<div>Loading...</div>} >
<SomeComponent ref={this.compRef} />
</Suspense>
}
}
ReactDOM.render(<Comp/>, document.createElement("div"))
```
## The current behavior
The current behavior is that the componentDidMount callback is fired before the lazy loaded component is rendered/mounted so using compRef fails.
## The expected behavior
The componentDidMount method should only fire once all of the child components have loaded/mounted. Or, there should be some other way to consolidate code that performs operations on asynchronously loaded/rendered components. | {'url': 'https://api.github.com/repos/facebook/react/issues/18139/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18139/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18138 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18138/labels{/name} | https://api.github.com/repos/facebook/react/issues/18138/comments | https://api.github.com/repos/facebook/react/issues/18138/events | https://github.com/facebook/react/pull/18138 | 571,328,107 | MDExOlB1bGxSZXF1ZXN0MzgwMjI2NjM1 | 18,138 | Remove react-dom OSS testing builds | {'login': 'threepointone', 'id': 18808, 'node_id': 'MDQ6VXNlcjE4ODA4', 'avatar_url': 'https://avatars.githubusercontent.com/u/18808?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/threepointone', 'html_url': 'https://github.com/threepointone', 'followers_url': 'https://api.github.com/users/threepointone/followers', 'following_url': 'https://api.github.com/users/threepointone/following{/other_user}', 'gists_url': 'https://api.github.com/users/threepointone/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/threepointone/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/threepointone/subscriptions', 'organizations_url': 'https://api.github.com/users/threepointone/orgs', 'repos_url': 'https://api.github.com/users/threepointone/repos', 'events_url': 'https://api.github.com/users/threepointone/events{/privacy}', 'received_events_url': 'https://api.github.com/users/threepointone/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18138/builds/12237) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 41d60f4b7c33d2f3596e1a2d9d252e64f11f004c:\n\n|Sandbox| Source |\n|--|--|\n|[thirsty-bogdan-6h3ti](https://codesandbox.io/s/thirsty-bogdan-6h3ti)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 41d60f4b7c33d2f3596e1a2d9d252e64f11f004c\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 41d60f4b7c33d2f3596e1a2d9d252e64f11f004c\n</p>\n"
] | 2020-02-26 12:46:12 | 2020-02-26 13:13:01 | 2020-02-26 13:12:56 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18138', 'html_url': 'https://github.com/facebook/react/pull/18138', 'diff_url': 'https://github.com/facebook/react/pull/18138.diff', 'patch_url': 'https://github.com/facebook/react/pull/18138.patch', 'merged_at': datetime.datetime(2020, 2, 26, 13, 12, 55)} | The testing build versions of react-dom are included in the OSS builds right now, but we're not ready to share them yet. This PR removes them for now (back soon for the next release).
Do your magic, CI.
| {'url': 'https://api.github.com/repos/facebook/react/issues/18138/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18138/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18137 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18137/labels{/name} | https://api.github.com/repos/facebook/react/issues/18137/comments | https://api.github.com/repos/facebook/react/issues/18137/events | https://github.com/facebook/react/pull/18137 | 571,054,515 | MDExOlB1bGxSZXF1ZXN0Mzc5OTk1NzEw | 18,137 | Remove /testing entry point from 'react' package | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18137/builds/12153) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 97132d24670a1c58724a8cf5aedfb249666e0fd4:\n\n|Sandbox| Source |\n|--|--|\n|[unruffled-franklin-iylgl](https://codesandbox.io/s/unruffled-franklin-iylgl)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 97132d24670a1c58724a8cf5aedfb249666e0fd4\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 97132d24670a1c58724a8cf5aedfb249666e0fd4\n</p>\n",
"This will come back in my next PR, but merged this to make it into .13. Thank you!"
] | 2020-02-26 04:03:44 | 2020-02-26 10:48:52 | 2020-02-26 10:48:35 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18137', 'html_url': 'https://github.com/facebook/react/pull/18137', 'diff_url': 'https://github.com/facebook/react/pull/18137.diff', 'patch_url': 'https://github.com/facebook/react/pull/18137.patch', 'merged_at': datetime.datetime(2020, 2, 26, 10, 48, 35)} | We're not actually building this entry point so it doesn't point to anything. I can't think of a reason we'd need to fork the isomorphic one. We don't really fork it for anything since it's so generic to work with all renderers.
Since /profiling doesn't have this, it might confuse the story if we made people alias two things for testing but not profiling.
| {'url': 'https://api.github.com/repos/facebook/react/issues/18137/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18137/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18136 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18136/labels{/name} | https://api.github.com/repos/facebook/react/issues/18136/comments | https://api.github.com/repos/facebook/react/issues/18136/events | https://github.com/facebook/react/pull/18136 | 571,038,901 | MDExOlB1bGxSZXF1ZXN0Mzc5OTgzMTU2 | 18,136 | Convert React Native builds to named exports | {'login': 'sebmarkbage', 'id': 63648, 'node_id': 'MDQ6VXNlcjYzNjQ4', 'avatar_url': 'https://avatars.githubusercontent.com/u/63648?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sebmarkbage', 'html_url': 'https://github.com/sebmarkbage', 'followers_url': 'https://api.github.com/users/sebmarkbage/followers', 'following_url': 'https://api.github.com/users/sebmarkbage/following{/other_user}', 'gists_url': 'https://api.github.com/users/sebmarkbage/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sebmarkbage/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sebmarkbage/subscriptions', 'organizations_url': 'https://api.github.com/users/sebmarkbage/orgs', 'repos_url': 'https://api.github.com/users/sebmarkbage/repos', 'events_url': 'https://api.github.com/users/sebmarkbage/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sebmarkbage/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18136/builds/12150) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 6930f7ced5aca4aa9516933668334c13b7404625:\n\n|Sandbox| Source |\n|--|--|\n|[blissful-khorana-ncl9v](https://codesandbox.io/s/blissful-khorana-ncl9v)| Configuration |\n",
"Diff https://github.com/sebmarkbage/react-builds/commit/f4ed2aa148b3ae8ee5118c6795986a0705ec63fe",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60016c448bb7d19fc989acd05dda5aca2e124381...6930f7ced5aca4aa9516933668334c13b7404625</p>\n\n\n \n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-dev.js | -0.1% | -0.2% | 615.82 KB | 615.37 KB | 132.76 KB | 132.52 KB | RN_FB_DEV\n**ReactFabric-prod.js** | **-0.1%** | **-0.2%** | **253.25 KB** | **252.87 KB** | **43.91 KB** | **43.81 KB** | **RN_FB_PROD**\nReactNativeRenderer-dev.js | -0.0% | -0.1% | 630.69 KB | 630.47 KB | 136.53 KB | 136.42 KB | RN_OSS_DEV\nReactFabric-profiling.js | -0.1% | -0.2% | 264.41 KB | 264.02 KB | 46.03 KB | 45.94 KB | RN_FB_PROFILING\n**ReactNativeRenderer-prod.js** | **-0.1%** | **-0.1%** | **260.95 KB** | **260.62 KB** | **45.25 KB** | **45.22 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | -0.1% | -0.1% | 272.12 KB | 271.77 KB | 47.38 KB | 47.35 KB | RN_OSS_PROFILING\nReactNativeRenderer-dev.js | -0.0% | -0.1% | 633.66 KB | 633.45 KB | 136.92 KB | 136.81 KB | RN_FB_DEV\n**ReactNativeRenderer-prod.js** | **-0.1%** | **-0.1%** | **261.34 KB** | **261.01 KB** | **45.31 KB** | **45.28 KB** | **RN_FB_PROD**\nReactNativeRenderer-profiling.js | -0.1% | -0.1% | 272.5 KB | 272.16 KB | 47.44 KB | 47.41 KB | RN_FB_PROFILING\nReactFabric-dev.js | -0.1% | -0.2% | 612.94 KB | 612.48 KB | 132.38 KB | 132.14 KB | RN_OSS_DEV\n**ReactFabric-prod.js** | **-0.1%** | **-0.2%** | **252.9 KB** | **252.52 KB** | **43.82 KB** | **43.73 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | -0.1% | -0.2% | 264.07 KB | 263.68 KB | 45.96 KB | 45.87 KB | RN_OSS_PROFILING\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 6930f7ced5aca4aa9516933668334c13b7404625\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60016c448bb7d19fc989acd05dda5aca2e124381...6930f7ced5aca4aa9516933668334c13b7404625</p>\n\n\n \n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**ReactNativeRenderer-prod.js** | **-0.1%** | **-0.1%** | **260.94 KB** | **260.61 KB** | **45.24 KB** | **45.21 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | -0.1% | -0.1% | 272.11 KB | 271.76 KB | 47.37 KB | 47.34 KB | RN_OSS_PROFILING\nReactFabric-dev.js | -0.1% | -0.2% | 612.93 KB | 612.47 KB | 132.37 KB | 132.13 KB | RN_OSS_DEV\n**ReactFabric-prod.js** | **-0.1%** | **-0.2%** | **252.89 KB** | **252.51 KB** | **43.81 KB** | **43.72 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | -0.1% | -0.2% | 264.05 KB | 263.67 KB | 45.95 KB | 45.86 KB | RN_OSS_PROFILING\nReactNativeRenderer-dev.js | -0.0% | -0.1% | 630.67 KB | 630.46 KB | 136.53 KB | 136.42 KB | RN_OSS_DEV\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 6930f7ced5aca4aa9516933668334c13b7404625\n</p>\n",
"There's some more info in https://github.com/facebook/react/pull/18106\r\n\r\nI think in a follow up I'll actually convert this to ES modules. Not sure if RN can take advantage of it though since it's a huge mix of ES modules and requires.\r\n\r\n> Having a test plan that sanity checks that this build still works in the Facebook app would be great though!\r\n\r\nThat's what the sync is for. We'll find out. :)",
"> That's what the sync is for. We'll find out. :)\r\n\r\nThat puts the burden on someone else, at some point in the future which would require them identifying this is the problem, and reverting it. However, reverting it probably wouldn't be trivial with additional changes stacked on top. Also, once this lands all partial syncs will have conflicts so we'd be totally blocked on moving forward until it can be resolved.\r\n\r\nDoing a test sync of a change like this and verifying that the change works seems like something that should be done before merging.",
"> That puts the burden on someone else, at some point in the future which would require them identifying this is the problem, and reverting it. However, reverting it probably wouldn't be trivial with additional changes stacked on top. Also, once this lands all partial syncs will have conflicts so we'd be totally blocked on moving forward until it can be resolved.\r\n\r\nI mean this is literally the point of the sync. To batch that burden on someone else. Every other thing we land has that problem."
] | 2020-02-26 03:11:12 | 2020-02-27 19:33:45 | 2020-02-27 19:33:45 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18136', 'html_url': 'https://github.com/facebook/react/pull/18136', 'diff_url': 'https://github.com/facebook/react/pull/18136.diff', 'patch_url': 'https://github.com/facebook/react/pull/18136.patch', 'merged_at': datetime.datetime(2020, 2, 27, 19, 33, 45)} | These don't need any forks because we always export the same things atm.
They still build to CJS though atm. | {'url': 'https://api.github.com/repos/facebook/react/issues/18136/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18136/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18135 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18135/labels{/name} | https://api.github.com/repos/facebook/react/issues/18135/comments | https://api.github.com/repos/facebook/react/issues/18135/events | https://github.com/facebook/react/pull/18135 | 571,015,298 | MDExOlB1bGxSZXF1ZXN0Mzc5OTYzNTQ5 | 18,135 | Remove unnecessary warnings | {'login': 'gaearon', 'id': 810438, 'node_id': 'MDQ6VXNlcjgxMDQzOA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/810438?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/gaearon', 'html_url': 'https://github.com/gaearon', 'followers_url': 'https://api.github.com/users/gaearon/followers', 'following_url': 'https://api.github.com/users/gaearon/following{/other_user}', 'gists_url': 'https://api.github.com/users/gaearon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/gaearon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/gaearon/subscriptions', 'organizations_url': 'https://api.github.com/users/gaearon/orgs', 'repos_url': 'https://api.github.com/users/gaearon/repos', 'events_url': 'https://api.github.com/users/gaearon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/gaearon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18135/builds/12142) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 602cb745b94135a2331a57e9f219acec80eccd9d:\n\n|Sandbox| Source |\n|--|--|\n|[musing-minsky-tzywk](https://codesandbox.io/s/musing-minsky-tzywk)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60016c448bb7d19fc989acd05dda5aca2e124381...602cb745b94135a2331a57e9f219acec80eccd9d</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | 0.0% | -0.0% | 123.7 KB | 123.7 KB | 38.58 KB | 38.56 KB | NODE_PROFILING\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.1% | 3.61 KB | 3.61 KB | 1.37 KB | 1.37 KB | UMD_DEV\nReactDOM-dev.js | -0.2% | -0.1% | 894.37 KB | 892.91 KB | 199.61 KB | 199.43 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 53.69 KB | 53.69 KB | 14.01 KB | 14.01 KB | UMD_DEV\nreact-dom-testing.profiling.min.js | 0.0% | -0.0% | 121.25 KB | 121.25 KB | 38.11 KB | 38.11 KB | NODE_PROFILING\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 138.16 KB | 138.16 KB | 35.19 KB | 35.19 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **11.22 KB** | **11.22 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 127.45 KB | 127.45 KB | 33.83 KB | 33.83 KB | NODE_DEV\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.36 KB** | **20.36 KB** | **7.45 KB** | **7.45 KB** | **NODE_PROD**\nreact-dom.development.js | -0.2% | -0.1% | 914.29 KB | 912.78 KB | 200.19 KB | 199.95 KB | UMD_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **119.75 KB** | **119.75 KB** | **38.22 KB** | **38.22 KB** | **UMD_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **10.28 KB** | **10.28 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.4 KB | 123.4 KB | 39.38 KB | 39.39 KB | UMD_PROFILING\nreact-dom.development.js | -0.2% | -0.1% | 866.69 KB | 865.26 KB | 196.52 KB | 196.32 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **119.9 KB** | **119.9 KB** | **37.45 KB** | **37.45 KB** | **NODE_PROD**\n**ReactDOM-prod.js** | **0.0%** | **:small_red_triangle:+0.1%** | **370.74 KB** | **370.74 KB** | **67.45 KB** | **67.51 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | 0.0% | +0.1% | 381.95 KB | 381.95 KB | 69.57 KB | 69.63 KB | FB_WWW_PROFILING\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.1% | 3.21 KB | 3.21 KB | 1.3 KB | 1.3 KB | NODE_DEV\nreact-dom-testing.development.js | -0.2% | -0.1% | 887.91 KB | 886.4 KB | 195.74 KB | 195.52 KB | UMD_DEV\n**react-dom-testing.production.min.js** | **0.0%** | **-0.1%** | **117.41 KB** | **117.41 KB** | **37.72 KB** | **37.69 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | -0.2% | -0.1% | 869.57 KB | 868.12 KB | 194.5 KB | 194.32 KB | FB_WWW_DEV\nreact-dom-testing.profiling.min.js | 0.0% | -0.0% | 120.94 KB | 120.94 KB | 38.9 KB | 38.89 KB | UMD_PROFILING\n**ReactDOMTesting-prod.js** | **0.0%** | **:small_red_triangle:+0.1%** | **368.76 KB** | **368.76 KB** | **67.35 KB** | **67.41 KB** | **FB_WWW_PROD**\nreact-dom-testing.development.js | -0.2% | -0.1% | 841.37 KB | 839.94 KB | 192.18 KB | 192 KB | NODE_DEV\nReactDOMTesting-profiling.js | 0.0% | +0.1% | 368.76 KB | 368.76 KB | 67.35 KB | 67.41 KB | FB_WWW_PROFILING\n**react-dom-testing.production.min.js** | **0.0%** | **-0.0%** | **117.57 KB** | **117.57 KB** | **37.05 KB** | **37.04 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **-0.0%** | **20.77 KB** | **20.77 KB** | **7.6 KB** | **7.6 KB** | **NODE_PROD**\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactART-dev.js | -0.2% | -0.1% | 539.01 KB | 538.18 KB | 112.86 KB | 112.7 KB | FB_WWW_DEV\nreact-art.development.js | -0.1% | -0.1% | 636.01 KB | 635.08 KB | 133.68 KB | 133.5 KB | UMD_DEV\nreact-art.development.js | -0.2% | -0.1% | 536.49 KB | 535.62 KB | 114.99 KB | 114.83 KB | NODE_DEV\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-test-renderer.development.js | -0.2% | -0.1% | 554.6 KB | 553.68 KB | 115.42 KB | 115.26 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **-0.0%** | **71.14 KB** | **71.14 KB** | **21.62 KB** | **21.62 KB** | **UMD_PROD**\nreact-test-renderer.development.js | -0.2% | -0.1% | 524.92 KB | 524.05 KB | 113.1 KB | 112.94 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **-0.0%** | **70.95 KB** | **70.95 KB** | **21.3 KB** | **21.3 KB** | **NODE_PROD**\nReactTestRenderer-dev.js | -0.2% | -0.1% | 551.81 KB | 550.9 KB | 116.23 KB | 116.07 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | -0.0% | 39.27 KB | 39.27 KB | 9.86 KB | 9.86 KB | UMD_DEV\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-dev.js | -0.1% | -0.1% | 615.82 KB | 614.91 KB | 132.76 KB | 132.6 KB | RN_FB_DEV\nReactNativeRenderer-dev.js | -0.1% | -0.1% | 630.69 KB | 629.77 KB | 136.53 KB | 136.37 KB | RN_OSS_DEV\nReactFabric-profiling.js | 0.0% | -0.0% | 264.41 KB | 264.41 KB | 46.03 KB | 46.03 KB | RN_FB_PROFILING\nReactNativeRenderer-dev.js | -0.1% | -0.1% | 633.66 KB | 632.75 KB | 136.92 KB | 136.76 KB | RN_FB_DEV\nReactFabric-dev.js | -0.1% | -0.1% | 612.94 KB | 612.03 KB | 132.38 KB | 132.22 KB | RN_OSS_DEV\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler-persistent.development.js | -0.2% | -0.1% | 553.05 KB | 552.18 KB | 116.97 KB | 116.82 KB | NODE_DEV\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **2.81 KB** | **2.81 KB** | **1.21 KB** | **1.21 KB** | **NODE_PROD**\nreact-reconciler.development.js | -0.2% | -0.1% | 575.12 KB | 574.25 KB | 121.02 KB | 120.84 KB | NODE_DEV\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 602cb745b94135a2331a57e9f219acec80eccd9d\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60016c448bb7d19fc989acd05dda5aca2e124381...602cb745b94135a2331a57e9f219acec80eccd9d</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | 0.0% | +0.1% | 405.88 KB | 405.88 KB | 73.83 KB | 73.87 KB | FB_WWW_PROFILING\n**react-dom-testing.production.min.js** | **0.0%** | **-0.0%** | **117.01 KB** | **117.01 KB** | **36.92 KB** | **36.91 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 59.07 KB | 59.07 KB | 14.75 KB | 14.75 KB | UMD_DEV\nreact-dom-testing.profiling.min.js | 0.0% | -0.0% | 120.7 KB | 120.7 KB | 37.97 KB | 37.97 KB | NODE_PROFILING\nreact-dom.development.js | -0.2% | -0.1% | 885.6 KB | 884.1 KB | 195.2 KB | 194.99 KB | UMD_DEV\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 136.57 KB | 136.57 KB | 34.98 KB | 34.98 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **1.17 KB** | **1.17 KB** | **676 B** | **677 B** | **NODE_PROD**\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **115.85 KB** | **115.85 KB** | **37.08 KB** | **37.07 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.38 KB | 119.38 KB | 38.28 KB | 38.29 KB | UMD_PROFILING\nReactDOMTesting-dev.js | -0.2% | -0.1% | 895.79 KB | 894.24 KB | 199.82 KB | 199.59 KB | FB_WWW_DEV\nreact-dom.development.js | -0.2% | -0.1% | 839.19 KB | 837.76 KB | 191.61 KB | 191.42 KB | NODE_DEV\n**ReactDOMTesting-prod.js** | **0.0%** | **:small_red_triangle:+0.1%** | **381.65 KB** | **381.65 KB** | **69.4 KB** | **69.44 KB** | **FB_WWW_PROD**\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 125.94 KB | 125.94 KB | 33.61 KB | 33.61 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **115.93 KB** | **115.93 KB** | **36.45 KB** | **36.44 KB** | **NODE_PROD**\nreact-dom-testing.development.js | -0.2% | -0.1% | 885.56 KB | 884.05 KB | 195.47 KB | 195.25 KB | UMD_DEV\nReactDOMTesting-profiling.js | 0.0% | +0.1% | 381.65 KB | 381.65 KB | 69.4 KB | 69.44 KB | FB_WWW_PROFILING\nreact-dom.profiling.min.js | 0.0% | -0.0% | 119.61 KB | 119.61 KB | 37.51 KB | 37.5 KB | NODE_PROFILING\n**react-dom-testing.production.min.js** | **0.0%** | **-0.1%** | **116.89 KB** | **116.89 KB** | **37.59 KB** | **37.56 KB** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **1.19 KB** | **1.19 KB** | **699 B** | **700 B** | **UMD_PROD**\nReactDOM-dev.js | -0.2% | -0.1% | 936.45 KB | 934.9 KB | 208.25 KB | 208.04 KB | FB_WWW_DEV\nreact-dom-testing.profiling.min.js | 0.0% | 0.0% | 120.42 KB | 120.42 KB | 38.76 KB | 38.76 KB | UMD_PROFILING\n**ReactDOM-prod.js** | **0.0%** | **:small_red_triangle:+0.1%** | **394.59 KB** | **394.59 KB** | **71.68 KB** | **71.72 KB** | **FB_WWW_PROD**\nreact-dom-testing.development.js | -0.2% | -0.1% | 839.13 KB | 837.69 KB | 191.92 KB | 191.73 KB | NODE_DEV\n**ReactDOMServer-prod.js** | **0.0%** | **0.0%** | **48.8 KB** | **48.8 KB** | **11.14 KB** | **11.14 KB** | **FB_WWW_PROD**\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 53.68 KB | 53.68 KB | 14 KB | 14 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **11.2 KB** | **11.2 KB** | **4.15 KB** | **4.15 KB** | **UMD_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.31 KB** | **20.31 KB** | **7.52 KB** | **7.53 KB** | **NODE_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-dev.js | -0.1% | -0.1% | 612.93 KB | 612.01 KB | 132.37 KB | 132.21 KB | RN_OSS_DEV\nReactFabric-profiling.js | 0.0% | -0.0% | 264.05 KB | 264.05 KB | 45.95 KB | 45.95 KB | RN_OSS_PROFILING\nReactNativeRenderer-dev.js | -0.1% | -0.1% | 630.67 KB | 629.76 KB | 136.53 KB | 136.36 KB | RN_OSS_DEV\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler-persistent.development.js | -0.2% | -0.1% | 553.04 KB | 552.17 KB | 116.97 KB | 116.81 KB | NODE_DEV\nreact-reconciler.development.js | -0.2% | -0.1% | 554.36 KB | 553.49 KB | 117.1 KB | 116.95 KB | NODE_DEV\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-art.development.js | -0.1% | -0.1% | 616.83 KB | 615.91 KB | 130.26 KB | 130.1 KB | UMD_DEV\n**react-art.production.min.js** | **0.0%** | **-0.0%** | **104.06 KB** | **104.06 KB** | **31.5 KB** | **31.49 KB** | **UMD_PROD**\nreact-art.development.js | -0.2% | -0.1% | 518.06 KB | 517.2 KB | 111.54 KB | 111.38 KB | NODE_DEV\nReactART-dev.js | -0.2% | -0.2% | 565.6 KB | 564.68 KB | 118.35 KB | 118.16 KB | FB_WWW_DEV\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**react-test-renderer.production.min.js** | **0.0%** | **-0.0%** | **70.92 KB** | **70.92 KB** | **21.28 KB** | **21.28 KB** | **NODE_PROD**\nreact-test-renderer-shallow.development.js | 0.0% | -0.0% | 32.11 KB | 32.11 KB | 8.41 KB | 8.4 KB | NODE_DEV\nreact-test-renderer.development.js | -0.2% | -0.1% | 554.58 KB | 553.65 KB | 115.41 KB | 115.25 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **-0.0%** | **71.11 KB** | **71.11 KB** | **21.61 KB** | **21.61 KB** | **UMD_PROD**\nreact-test-renderer.development.js | -0.2% | -0.1% | 524.89 KB | 524.03 KB | 113.09 KB | 112.93 KB | NODE_DEV\nReactTestRenderer-dev.js | -0.2% | -0.1% | 551.8 KB | 550.89 KB | 116.23 KB | 116.06 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | -0.0% | 39.26 KB | 39.26 KB | 9.85 KB | 9.85 KB | UMD_DEV\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 602cb745b94135a2331a57e9f219acec80eccd9d\n</p>\n"
] | 2020-02-26 02:08:10 | 2020-02-27 02:14:31 | 2020-02-27 02:14:31 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18135', 'html_url': 'https://github.com/facebook/react/pull/18135', 'diff_url': 'https://github.com/facebook/react/pull/18135.diff', 'patch_url': 'https://github.com/facebook/react/pull/18135.patch', 'merged_at': datetime.datetime(2020, 2, 27, 2, 14, 31)} | These don't seem particularly useful anymore.
- *Shady* DOM: too niche
- setState in getChildContext: too niche and lets us simplify some spread out code
- maxDuration: gone, never stable | {'url': 'https://api.github.com/repos/facebook/react/issues/18135/reactions', 'total_count': 1, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 1, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18135/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18134 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18134/labels{/name} | https://api.github.com/repos/facebook/react/issues/18134/comments | https://api.github.com/repos/facebook/react/issues/18134/events | https://github.com/facebook/react/issues/18134 | 570,982,596 | MDU6SXNzdWU1NzA5ODI1OTY= | 18,134 | setState takes type State but it should be Partial<State> | {'login': 'ORESoftware', 'id': 11139560, 'node_id': 'MDQ6VXNlcjExMTM5NTYw', 'avatar_url': 'https://avatars.githubusercontent.com/u/11139560?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/ORESoftware', 'html_url': 'https://github.com/ORESoftware', 'followers_url': 'https://api.github.com/users/ORESoftware/followers', 'following_url': 'https://api.github.com/users/ORESoftware/following{/other_user}', 'gists_url': 'https://api.github.com/users/ORESoftware/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/ORESoftware/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/ORESoftware/subscriptions', 'organizations_url': 'https://api.github.com/users/ORESoftware/orgs', 'repos_url': 'https://api.github.com/users/ORESoftware/repos', 'events_url': 'https://api.github.com/users/ORESoftware/events{/privacy}', 'received_events_url': 'https://api.github.com/users/ORESoftware/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"The useState hook isn't like setState in a class it completely replaces the previous value on update. So \"partial\" updates like your example would leave state without hotReloadState"
] | 2020-02-26 01:12:49 | 2020-02-26 01:47:43 | 2020-02-26 01:47:43 | NONE | null | null | null | Not sure where TS typing complaints belong, I have this one:
![Screenshot from 2020-02-25 17-13-18](https://user-images.githubusercontent.com/11139560/75302291-27d20980-57f2-11ea-9ad9-3dad9ef128d1.png)
As far as I know it should be `Partial<State>` not `State` for the type. Here is the type of setState()
```js
function useState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<S>>];
```
but this is better:
```js
function useState<S>(initialState: S | (() => S)): [S, Dispatch<SetStateAction<Partial<S>>>];
``` | {'url': 'https://api.github.com/repos/facebook/react/issues/18134/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18134/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18133 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18133/labels{/name} | https://api.github.com/repos/facebook/react/issues/18133/comments | https://api.github.com/repos/facebook/react/issues/18133/events | https://github.com/facebook/react/pull/18133 | 570,950,013 | MDExOlB1bGxSZXF1ZXN0Mzc5OTA0NjY4 | 18,133 | Add a flag to disable module pattern components | {'login': 'gaearon', 'id': 810438, 'node_id': 'MDQ6VXNlcjgxMDQzOA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/810438?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/gaearon', 'html_url': 'https://github.com/gaearon', 'followers_url': 'https://api.github.com/users/gaearon/followers', 'following_url': 'https://api.github.com/users/gaearon/following{/other_user}', 'gists_url': 'https://api.github.com/users/gaearon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/gaearon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/gaearon/subscriptions', 'organizations_url': 'https://api.github.com/users/gaearon/orgs', 'repos_url': 'https://api.github.com/users/gaearon/repos', 'events_url': 'https://api.github.com/users/gaearon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/gaearon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18133/builds/12134) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit ae4f0b266fc034f418937d93c0b7bba7db48738e:\n\n|Sandbox| Source |\n|--|--|\n|[laughing-sara-x404g](https://codesandbox.io/s/laughing-sara-x404g)| Configuration |\n",
"We can probably even hard-break in both WWW builds.",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against ae4f0b266fc034f418937d93c0b7bba7db48738e\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 3 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60016c448bb7d19fc989acd05dda5aca2e124381...ae4f0b266fc034f418937d93c0b7bba7db48738e</p>\n\n\n \n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | 0.0% | -0.0% | 123.7 KB | 123.7 KB | 38.58 KB | 38.58 KB | NODE_PROFILING\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.1% | 3.61 KB | 3.61 KB | 1.37 KB | 1.37 KB | UMD_DEV\nReactDOM-dev.js | -0.3% | -0.2% | 894.37 KB | 892.12 KB | 199.61 KB | 199.24 KB | FB_WWW_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.3%** | **1.2 KB** | **1.2 KB** | **708 B** | **706 B** | **UMD_PROD**\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 53.69 KB | 53.69 KB | 14.01 KB | 14.01 KB | UMD_DEV\nreact-dom-testing.profiling.min.js | 0.0% | -0.0% | 121.25 KB | 121.25 KB | 38.11 KB | 38.11 KB | NODE_PROFILING\nreact-dom-server.browser.development.js | 0.0% | 0.0% | 138.16 KB | 138.16 KB | 35.19 KB | 35.19 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **11.22 KB** | **11.22 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\nreact-dom-test-utils.development.js | 0.0% | -0.0% | 49.52 KB | 49.52 KB | 13.55 KB | 13.55 KB | NODE_DEV\nreact-dom-server.browser.development.js | 0.0% | -0.0% | 127.45 KB | 127.45 KB | 33.83 KB | 33.83 KB | NODE_DEV\n**react-dom-server.browser.production.min.js** | **0.0%** | **-0.0%** | **20.36 KB** | **20.36 KB** | **7.45 KB** | **7.45 KB** | **NODE_PROD**\nreact-dom.development.js | 0.0% | -0.0% | 914.29 KB | 914.29 KB | 200.19 KB | 200.19 KB | UMD_DEV\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 59.08 KB | 59.08 KB | 14.75 KB | 14.75 KB | UMD_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **119.75 KB** | **119.75 KB** | **38.22 KB** | **38.22 KB** | **UMD_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **10.28 KB** | **10.28 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\nReactDOMServer-dev.js | 0.0% | -0.0% | 134.46 KB | 134.46 KB | 34.28 KB | 34.28 KB | FB_WWW_DEV\nreact-dom.profiling.min.js | 0.0% | -0.0% | 123.4 KB | 123.4 KB | 39.38 KB | 39.38 KB | UMD_PROFILING\nreact-dom.development.js | 0.0% | -0.0% | 866.69 KB | 866.69 KB | 196.52 KB | 196.52 KB | NODE_DEV\nreact-dom-unstable-native-dependencies.development.js | 0.0% | -0.0% | 56.05 KB | 56.05 KB | 14.54 KB | 14.54 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | -0.1% | 3.94 KB | 3.94 KB | 1.46 KB | 1.46 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **-0.0%** | **119.9 KB** | **119.9 KB** | **37.45 KB** | **37.45 KB** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **-0.0%** | **10 KB** | **10 KB** | **3.39 KB** | **3.38 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **-0.3%** | **1.19 KB** | **1.19 KB** | **685 B** | **683 B** | **NODE_PROD**\n**ReactDOM-prod.js** | **-0.5%** | **-0.3%** | **370.74 KB** | **369.06 KB** | **67.45 KB** | **67.25 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | -0.4% | -0.3% | 381.95 KB | 380.27 KB | 69.57 KB | 69.35 KB | FB_WWW_PROFILING\nreact-dom-unstable-fizz.browser.development.js | 0.0% | -0.2% | 3.21 KB | 3.21 KB | 1.3 KB | 1.3 KB | NODE_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **-0.2%** | **1.03 KB** | **1.03 KB** | **629 B** | **628 B** | **NODE_PROD**\nreact-dom-testing.development.js | 0.0% | -0.0% | 887.91 KB | 887.91 KB | 195.74 KB | 195.74 KB | UMD_DEV\n**react-dom-testing.production.min.js** | **0.0%** | **-0.0%** | **117.41 KB** | **117.41 KB** | **37.72 KB** | **37.72 KB** | **UMD_PROD**\nReactDOMTesting-dev.js | 0.0% | -0.0% | 869.57 KB | 869.57 KB | 194.5 KB | 194.5 KB | FB_WWW_DEV\nreact-dom-testing.profiling.min.js | 0.0% | -0.0% | 120.94 KB | 120.94 KB | 38.9 KB | 38.89 KB | UMD_PROFILING\nreact-dom-testing.development.js | 0.0% | -0.0% | 841.37 KB | 841.37 KB | 192.18 KB | 192.18 KB | NODE_DEV\nreact-dom-server.node.development.js | 0.0% | -0.0% | 128.57 KB | 128.57 KB | 34.05 KB | 34.05 KB | NODE_DEV\n**react-dom-server.node.production.min.js** | **0.0%** | **-0.0%** | **20.77 KB** | **20.77 KB** | **7.6 KB** | **7.6 KB** | **NODE_PROD**\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactART-dev.js | -0.4% | -0.3% | 539.01 KB | 536.76 KB | 112.86 KB | 112.5 KB | FB_WWW_DEV\nreact-art.development.js | 0.0% | -0.0% | 636.01 KB | 636.01 KB | 133.68 KB | 133.68 KB | UMD_DEV\n**react-art.production.min.js** | **0.0%** | **-0.0%** | **106.49 KB** | **106.49 KB** | **32.15 KB** | **32.14 KB** | **UMD_PROD**\nreact-art.development.js | 0.0% | -0.0% | 536.49 KB | 536.49 KB | 114.99 KB | 114.99 KB | NODE_DEV\n**react-art.production.min.js** | **0.0%** | **-0.0%** | **71.42 KB** | **71.42 KB** | **21.36 KB** | **21.36 KB** | **NODE_PROD**\n**ReactART-prod.js** | **-0.7%** | **-0.5%** | **227.26 KB** | **225.59 KB** | **38.5 KB** | **38.3 KB** | **FB_WWW_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: -0.3%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against ae4f0b266fc034f418937d93c0b7bba7db48738e\n</p>\n"
] | 2020-02-26 00:20:17 | 2020-03-06 18:46:38 | 2020-03-06 18:46:33 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18133', 'html_url': 'https://github.com/facebook/react/pull/18133', 'diff_url': 'https://github.com/facebook/react/pull/18133.diff', 'patch_url': 'https://github.com/facebook/react/pull/18133.patch', 'merged_at': datetime.datetime(2020, 3, 6, 18, 46, 33)} | This was already very niche and the warning doesn't fire on WWW. Let's disable these completely in the modern WWW build and stop doing these three checks for every element returned from a function? | {'url': 'https://api.github.com/repos/facebook/react/issues/18133/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18133/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18132 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18132/labels{/name} | https://api.github.com/repos/facebook/react/issues/18132/comments | https://api.github.com/repos/facebook/react/issues/18132/events | https://github.com/facebook/react/pull/18132 | 570,939,676 | MDExOlB1bGxSZXF1ZXN0Mzc5ODk1MjY2 | 18,132 | Remove unused flag | {'login': 'gaearon', 'id': 810438, 'node_id': 'MDQ6VXNlcjgxMDQzOA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/810438?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/gaearon', 'html_url': 'https://github.com/gaearon', 'followers_url': 'https://api.github.com/users/gaearon/followers', 'following_url': 'https://api.github.com/users/gaearon/following{/other_user}', 'gists_url': 'https://api.github.com/users/gaearon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/gaearon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/gaearon/subscriptions', 'organizations_url': 'https://api.github.com/users/gaearon/orgs', 'repos_url': 'https://api.github.com/users/gaearon/repos', 'events_url': 'https://api.github.com/users/gaearon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/gaearon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18132/builds/12133) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit c16cedad06ac89bd8cf21db3b8d42b772c8fcfe4:\n\n|Sandbox| Source |\n|--|--|\n|[hardcore-star-s8xy6](https://codesandbox.io/s/hardcore-star-s8xy6)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against c16cedad06ac89bd8cf21db3b8d42b772c8fcfe4\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against c16cedad06ac89bd8cf21db3b8d42b772c8fcfe4\n</p>\n"
] | 2020-02-26 00:04:19 | 2020-02-27 12:58:16 | 2020-02-27 12:58:16 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18132', 'html_url': 'https://github.com/facebook/react/pull/18132', 'diff_url': 'https://github.com/facebook/react/pull/18132.diff', 'patch_url': 'https://github.com/facebook/react/pull/18132.patch', 'merged_at': datetime.datetime(2020, 2, 27, 12, 58, 16)} | This is always true. | {'url': 'https://api.github.com/repos/facebook/react/issues/18132/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18132/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18131 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18131/labels{/name} | https://api.github.com/repos/facebook/react/issues/18131/comments | https://api.github.com/repos/facebook/react/issues/18131/events | https://github.com/facebook/react/issues/18131 | 570,893,387 | MDU6SXNzdWU1NzA4OTMzODc= | 18,131 | EventListeners can not get states after changing | {'login': 'nimahkh', 'id': 12640517, 'node_id': 'MDQ6VXNlcjEyNjQwNTE3', 'avatar_url': 'https://avatars.githubusercontent.com/u/12640517?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/nimahkh', 'html_url': 'https://github.com/nimahkh', 'followers_url': 'https://api.github.com/users/nimahkh/followers', 'following_url': 'https://api.github.com/users/nimahkh/following{/other_user}', 'gists_url': 'https://api.github.com/users/nimahkh/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/nimahkh/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/nimahkh/subscriptions', 'organizations_url': 'https://api.github.com/users/nimahkh/orgs', 'repos_url': 'https://api.github.com/users/nimahkh/repos', 'events_url': 'https://api.github.com/users/nimahkh/events{/privacy}', 'received_events_url': 'https://api.github.com/users/nimahkh/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"For who they have same problem: \r\nI just change the document to my current DOM:\r\n\r\n```\r\nfunction listen(e){\r\n e.currentTag.addEventListener(\"keydown\", (e)=>detectDelete(e,states), false);\r\n };\r\n```",
"@nimahkh You have to remove listener each time when you change onKeyDown and add listener again. You can't pass arrow function to addEventListener, because you need to pass same function to addEventListener and to removeEventListener\r\n\r\n```\r\nconst onKeyDown = useCallback((event) => detectDelete(event, states), [states])\r\n\r\nuseEffect(() => {\r\n document.addEventListener(\"keydown\", onKeyDown);\r\n return () => {\r\n document.removeEventListener(\"keydown\", onKeyDown);\r\n }\r\n}, [onKeyDown])\r\n "
] | 2020-02-25 22:52:19 | 2020-02-29 07:20:45 | 2020-02-26 00:07:26 | NONE | null | null | null | Hello guys.
I want to click on some boxes and access to delete them with the "delete" button.
```
React.useEffect(() => {
document.addEventListener("keydown", (e)=>detectDelete(e), false);
}, []);
```
> Now the detectDelete can not find that the states are changed.
**so I change the code to this:**
```
React.useEffect(() => {
document.addEventListener("keydown", (e)=>detectDelete(e,states), false);
}, [states.selectedType, states.selectedId]);
```
Now, this code is run every time. but what I have is the states and their previous.
for example:
the first time I get :
```
Object { selectedId: 0, selectedType: "image" }
```
but after changing state I will get :
```
Object { selectedId: 0, selectedType: "image" }
Object { selectedId: 0, selectedType: "gesture" }
```
The state is ok outside of listener. it is just happening in the `detectDelete` function | {'url': 'https://api.github.com/repos/facebook/react/issues/18131/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18131/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18130 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18130/labels{/name} | https://api.github.com/repos/facebook/react/issues/18130/comments | https://api.github.com/repos/facebook/react/issues/18130/events | https://github.com/facebook/react/pull/18130 | 570,872,477 | MDExOlB1bGxSZXF1ZXN0Mzc5ODM0ODIz | 18,130 | Update ReactDebugHooks to handle composite hooks | {'login': 'bvaughn', 'id': 29597, 'node_id': 'MDQ6VXNlcjI5NTk3', 'avatar_url': 'https://avatars.githubusercontent.com/u/29597?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/bvaughn', 'html_url': 'https://github.com/bvaughn', 'followers_url': 'https://api.github.com/users/bvaughn/followers', 'following_url': 'https://api.github.com/users/bvaughn/following{/other_user}', 'gists_url': 'https://api.github.com/users/bvaughn/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/bvaughn/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/bvaughn/subscriptions', 'organizations_url': 'https://api.github.com/users/bvaughn/orgs', 'repos_url': 'https://api.github.com/users/bvaughn/repos', 'events_url': 'https://api.github.com/users/bvaughn/events{/privacy}', 'received_events_url': 'https://api.github.com/users/bvaughn/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18130/builds/12115) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit a642c121e667124357a1caec149e932327f233f4:\n\n|Sandbox| Source |\n|--|--|\n|[nostalgic-chaum-lnzli](https://codesandbox.io/s/nostalgic-chaum-lnzli)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60016c448bb7d19fc989acd05dda5aca2e124381...76ba30b2c490b2e42b730b6f57f914bc0a640c21</p>\n\n\n \n## react-debug-tools\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-debug-tools.development.js | +2.1% | +1.6% | 20.06 KB | 20.49 KB | 5.86 KB | 5.95 KB | NODE_DEV\n**react-debug-tools.production.min.js** | **:small_red_triangle:+0.1%** | **0.0%** | **6.25 KB** | **6.26 KB** | **2.46 KB** | **2.46 KB** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 76ba30b2c490b2e42b730b6f57f914bc0a640c21\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 60016c448bb7d19fc989acd05dda5aca2e124381...76ba30b2c490b2e42b730b6f57f914bc0a640c21</p>\n\n\n \n## react-debug-tools\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-debug-tools.development.js | +2.1% | +1.6% | 20.08 KB | 20.5 KB | 5.86 KB | 5.96 KB | NODE_DEV\n**react-debug-tools.production.min.js** | **:small_red_triangle:+0.1%** | **:small_red_triangle:+0.1%** | **6.26 KB** | **6.27 KB** | **2.47 KB** | **2.47 KB** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 76ba30b2c490b2e42b730b6f57f914bc0a640c21\n</p>\n",
"Code Sandbox build is trippin",
"> Might want to drop a line on useOpaqueIdentifier.\r\n\r\nNot sure I understand. That one hasn't landed yet?",
"I think Seb meant to drop a line on the PR so we don't forget to address before merging it.\r\n",
"Ha! That makes more sense. :) Looks like you already added a comment. Thanks"
] | 2020-02-25 22:18:34 | 2020-02-26 18:25:07 | 2020-02-26 17:28:35 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18130', 'html_url': 'https://github.com/facebook/react/pull/18130', 'diff_url': 'https://github.com/facebook/react/pull/18130.diff', 'patch_url': 'https://github.com/facebook/react/pull/18130.patch', 'merged_at': datetime.datetime(2020, 2, 26, 17, 28, 35)} | The `useState` hook has always composed the `useReducer` hook. 1:1 composition like this is fine.
But some more recent hooks (e.g. `useTransition`, `useDeferredValue`) compose multiple hooks internally. This breaks `react-debug-tools` because it causes off-by-N errors when the debug tools re-renders the function.
For example, if a component were to use the `useTransition` and `useMemo` hooks, the normal hooks dispatcher would create a list of first state, then callback, then memo hooks, but the debug tools package would expect a list of transition then memo. This can break user code and cause runtime errors in both the `react-debug-tools` package and in product code.
This PR fixes the currently broken hooks by updating debug tools to be aware of the composite hooks (how many times it should call `nextHook` essentially) and adds tests to make sure they don't get out of sync again. We'll need to add similar tests for future composite hooks (like `useMutableSource` https://github.com/facebook/react/pull/18000). | {'url': 'https://api.github.com/repos/facebook/react/issues/18130/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18130/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18129 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18129/labels{/name} | https://api.github.com/repos/facebook/react/issues/18129/comments | https://api.github.com/repos/facebook/react/issues/18129/events | https://github.com/facebook/react/pull/18129 | 570,678,406 | MDExOlB1bGxSZXF1ZXN0Mzc5NjczNTQ2 | 18,129 | our addition | {'login': 'Abubakarauta', 'id': 61149266, 'node_id': 'MDQ6VXNlcjYxMTQ5MjY2', 'avatar_url': 'https://avatars.githubusercontent.com/u/61149266?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/Abubakarauta', 'html_url': 'https://github.com/Abubakarauta', 'followers_url': 'https://api.github.com/users/Abubakarauta/followers', 'following_url': 'https://api.github.com/users/Abubakarauta/following{/other_user}', 'gists_url': 'https://api.github.com/users/Abubakarauta/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/Abubakarauta/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/Abubakarauta/subscriptions', 'organizations_url': 'https://api.github.com/users/Abubakarauta/orgs', 'repos_url': 'https://api.github.com/users/Abubakarauta/repos', 'events_url': 'https://api.github.com/users/Abubakarauta/events{/privacy}', 'received_events_url': 'https://api.github.com/users/Abubakarauta/received_events', 'type': 'User', 'site_admin': False} | [] | closed | false | null | [] | null | [
"Hi @Abubakarauta! \n\nThank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.\n\nIn order for us to review and merge your code, please sign at <https://code.facebook.com/cla>. **If you are contributing on behalf of someone else (eg your employer)**, the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.\n\nIf you have received this in error or have any questions, please contact us at [cla@fb.com](mailto:cla@fb.com?subject=CLA%20for%20facebook%2Freact%20%2318129). Thanks!",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18129/builds/12078) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit f437584e79a104800d0332d575fe92fbe331eb57:\n\n|Sandbox| Source |\n|--|--|\n|[infallible-brattain-78yt7](https://codesandbox.io/s/infallible-brattain-78yt7)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against f437584e79a104800d0332d575fe92fbe331eb57\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against f437584e79a104800d0332d575fe92fbe331eb57\n</p>\n"
] | 2020-02-25 16:06:21 | 2020-02-25 16:57:03 | 2020-02-25 16:57:03 | NONE | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18129', 'html_url': 'https://github.com/facebook/react/pull/18129', 'diff_url': 'https://github.com/facebook/react/pull/18129.diff', 'patch_url': 'https://github.com/facebook/react/pull/18129.patch', 'merged_at': None} | <!--
Thanks for submitting a pull request!
We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory.
Before submitting a pull request, please make sure the following is done:
1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
2. Run `yarn` in the repository root.
3. If you've fixed a bug or added code that should be tested, add tests!
4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch TestName` is helpful in development.
5. Run `yarn test-prod` to test in the production environment. It supports the same options as `yarn test`.
6. If you need a debugger, run `yarn debug-test --watch TestName`, open `chrome://inspect`, and press "Inspect".
7. Format your code with [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only check changed files.
9. Run the [Flow](https://flowtype.org/) typechecks (`yarn flow`).
10. If you haven't already, complete the CLA.
Learn more about contributing: https://reactjs.org/docs/how-to-contribute.html
-->
## Summary
<!-- Explain the **motivation** for making this change. What existing problem does the pull request solve? -->
## Test Plan
<!-- Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. -->
| {'url': 'https://api.github.com/repos/facebook/react/issues/18129/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18129/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18128 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18128/labels{/name} | https://api.github.com/repos/facebook/react/issues/18128/comments | https://api.github.com/repos/facebook/react/issues/18128/events | https://github.com/facebook/react/issues/18128 | 570,670,095 | MDU6SXNzdWU1NzA2NzAwOTU= | 18,128 | Bug: input won't trigger onChange after a chain of setStates | {'login': 'voliva', 'id': 5365487, 'node_id': 'MDQ6VXNlcjUzNjU0ODc=', 'avatar_url': 'https://avatars.githubusercontent.com/u/5365487?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/voliva', 'html_url': 'https://github.com/voliva', 'followers_url': 'https://api.github.com/users/voliva/followers', 'following_url': 'https://api.github.com/users/voliva/following{/other_user}', 'gists_url': 'https://api.github.com/users/voliva/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/voliva/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/voliva/subscriptions', 'organizations_url': 'https://api.github.com/users/voliva/orgs', 'repos_url': 'https://api.github.com/users/voliva/repos', 'events_url': 'https://api.github.com/users/voliva/events{/privacy}', 'received_events_url': 'https://api.github.com/users/voliva/received_events', 'type': 'User', 'site_admin': False} | [{'id': 40929151, 'node_id': 'MDU6TGFiZWw0MDkyOTE1MQ==', 'url': 'https://api.github.com/repos/facebook/react/labels/Type:%20Bug', 'name': 'Type: Bug', 'color': 'b60205', 'default': False, 'description': None}] | closed | false | {'login': 'acdlite', 'id': 3624098.0, 'node_id': 'MDQ6VXNlcjM2MjQwOTg=', 'avatar_url': 'https://avatars.githubusercontent.com/u/3624098?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/acdlite', 'html_url': 'https://github.com/acdlite', 'followers_url': 'https://api.github.com/users/acdlite/followers', 'following_url': 'https://api.github.com/users/acdlite/following{/other_user}', 'gists_url': 'https://api.github.com/users/acdlite/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/acdlite/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/acdlite/subscriptions', 'organizations_url': 'https://api.github.com/users/acdlite/orgs', 'repos_url': 'https://api.github.com/users/acdlite/repos', 'events_url': 'https://api.github.com/users/acdlite/events{/privacy}', 'received_events_url': 'https://api.github.com/users/acdlite/received_events', 'type': 'User', 'site_admin': False} | [{'login': 'acdlite', 'id': 3624098, 'node_id': 'MDQ6VXNlcjM2MjQwOTg=', 'avatar_url': 'https://avatars.githubusercontent.com/u/3624098?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/acdlite', 'html_url': 'https://github.com/acdlite', 'followers_url': 'https://api.github.com/users/acdlite/followers', 'following_url': 'https://api.github.com/users/acdlite/following{/other_user}', 'gists_url': 'https://api.github.com/users/acdlite/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/acdlite/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/acdlite/subscriptions', 'organizations_url': 'https://api.github.com/users/acdlite/orgs', 'repos_url': 'https://api.github.com/users/acdlite/repos', 'events_url': 'https://api.github.com/users/acdlite/events{/privacy}', 'received_events_url': 'https://api.github.com/users/acdlite/received_events', 'type': 'User', 'site_admin': False}] | null | [
"Update: I've bisected this happens just after #15650 merged.\r\n\r\nEdit: I've also tracked this happens because the change event is not generated. By the time ChangeEventPlugin.js runs because of the native `input` event, react has reset the input's value to the one on the state (because now flushing passive effects happens before dispatching the event). Then when it checks whether the input has changed value in `updateValueIfChanged` it won't detect the change (again, as the value has been overriden).\r\n\r\nAs I understood it, and missing so many things, the flow would be:\r\n1. The user presses `'a'`\r\n2. `keydown` native event triggers react's `dispatchInteractiveEvent`\r\n3. React calls the handler\r\n4. The handler calls `setState`\r\n5. The browser updates the value of the input to `'a'`\r\n6. `input` native event triggers react's `dispatchInteractiveEvent`\r\n7. React flushes passive effects (because of #15650 change)\r\n8. Because of that flush, react synchronously resets the input value to the state variable (e.g. `''`)\r\n9. React calls `ChangeEventPlugin.js`\r\n10. `updateValueIfChanged` returns false as it detects the value hasn't changed\r\n11. `ChangeEventPlugin.js` doesn't generate `change` event.\r\n\r\nUnfortunately that change is so old (close to one year) that I completely lost track on where and how is this flow handled, but probably the problem is the same: By the time react would generate the synthetic change event, a flush has already reset the input's value to the original one.",
"I did more triaging, this broke in react-dom package in particular.\r\n- Using react@16.13.1 with react-dom@16.9.0-alpha.0 - shows the expected behavior\r\n- Using react@16.13.1 with 16.9.0-rc.0 - shows the broken behavior",
"I tried with react-dom@17.0.0-rc.0 (hoping that with the refactored event system it would work) and it seems like it still doesn't work.",
"We haven't touched that part but there are some post-17 changes planned that should simplify this. We'll revisit at that point.",
"This is fixed in 18 alpha.\r\nhttps://codesandbox.io/s/tender-glade-80ks5?file=/src/App.js\r\n\r\nUnfortunately we won't backport the fix to 17 because it was a complex refactor which relies on other things we're putting in 18."
] | 2020-02-25 15:54:28 | 2021-06-23 21:19:53 | 2021-06-23 21:19:53 | NONE | null | null | null | <!--
Please provide a clear and concise description of what the bug is. Include
screenshots if needed. Please test using the latest version of the relevant
React packages to make sure your issue has not already been fixed.
-->
React-dom version: 16.9.0 to 16.12.0 (latest)
This bug was not present in 16.8.6
## Steps To Reproduce
1. Create a controlled input element
2. Add an `onKeyDown` event handler that will change a state.
3. Add a `useEffect` hook that depends on the state from (2.), and changes another state
4. Try to type in something in the input
<!--
Your bug will get fixed much faster if we can run your code and it doesn't
have dependencies other than React. Issues without reproduction steps or
code examples may be immediately closed as not actionable.
-->
Link to code example: https://codesandbox.io/s/nostalgic-lake-zzynt
<!--
Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
repository on GitHub, or provide a minimal code example that reproduces the
problem. You may provide a screenshot of the application if you think it is
relevant to your bug report. Here are some tips for providing a minimal
example: https://stackoverflow.com/help/mcve.
-->
## The current behavior
The input updates with the key the user has pressed
## The expected behavior
The input doesn't update. The handler for `onKeyDown` was called, but the handler for `onChange` wasn't.
| {'url': 'https://api.github.com/repos/facebook/react/issues/18128/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18128/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18127 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18127/labels{/name} | https://api.github.com/repos/facebook/react/issues/18127/comments | https://api.github.com/repos/facebook/react/issues/18127/events | https://github.com/facebook/react/pull/18127 | 570,669,316 | MDExOlB1bGxSZXF1ZXN0Mzc5NjY1ODU2 | 18,127 | Remove runtime dependency on prop-types | {'login': 'gaearon', 'id': 810438, 'node_id': 'MDQ6VXNlcjgxMDQzOA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/810438?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/gaearon', 'html_url': 'https://github.com/gaearon', 'followers_url': 'https://api.github.com/users/gaearon/followers', 'following_url': 'https://api.github.com/users/gaearon/following{/other_user}', 'gists_url': 'https://api.github.com/users/gaearon/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/gaearon/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/gaearon/subscriptions', 'organizations_url': 'https://api.github.com/users/gaearon/orgs', 'repos_url': 'https://api.github.com/users/gaearon/repos', 'events_url': 'https://api.github.com/users/gaearon/events{/privacy}', 'received_events_url': 'https://api.github.com/users/gaearon/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18127/builds/12489) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit d24114997d12c9f6a61e90934e662b8690c2635b:\n\n|Sandbox| Source |\n|--|--|\n|[pedantic-flower-7wdsn](https://codesandbox.io/s/pedantic-flower-7wdsn)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 4 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 739f20beda56a28a9212e3478571c866babee118...d24114997d12c9f6a61e90934e662b8690c2635b</p>\n\n\n \n## react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact.development.js | -1.6% | -1.8% | 102.69 KB | 101.03 KB | 25.46 KB | 25 KB | UMD_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **12.19 KB** | **12.19 KB** | **4.79 KB** | **4.79 KB** | **UMD_PROD**\nreact.profiling.min.js | 0.0% | 0.0% | 15.72 KB | 15.72 KB | 5.91 KB | 5.91 KB | UMD_PROFILING\nreact.development.js | +3.5% | +4.1% | 59.24 KB | 61.32 KB | 16.08 KB | 16.73 KB | NODE_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **6.54 KB** | **6.54 KB** | **2.66 KB** | **2.66 KB** | **NODE_PROD**\nReact-dev.js | +3.4% | +4.0% | 71.92 KB | 74.37 KB | 18.15 KB | 18.88 KB | FB_WWW_DEV\n**React-prod.js** | **0.0%** | **0.0%** | **17.71 KB** | **17.71 KB** | **4.57 KB** | **4.57 KB** | **FB_WWW_PROD**\nReact-profiling.js | 0.0% | 0.0% | 17.71 KB | 17.71 KB | 4.57 KB | 4.57 KB | FB_WWW_PROFILING\n\n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactDOM-profiling.js | 0.0% | 0.0% | 405.88 KB | 405.88 KB | 73.87 KB | 73.87 KB | FB_WWW_PROFILING\nreact-dom-server.browser.development.js | -1.3% | -0.9% | 136.3 KB | 134.53 KB | 34.88 KB | 34.57 KB | UMD_DEV\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.15 KB** | **1.15 KB** | **653 B** | **655 B** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **19.99 KB** | **19.99 KB** | **7.39 KB** | **7.39 KB** | **UMD_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.86 KB | 55.86 KB | 14.46 KB | 14.46 KB | NODE_DEV\nreact-dom.development.js | -0.3% | -0.3% | 884.09 KB | 881.76 KB | 194.99 KB | 194.34 KB | UMD_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **0.0%** | **9.99 KB** | **9.99 KB** | **3.37 KB** | **3.37 KB** | **NODE_PROD**\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **115.85 KB** | **115.85 KB** | **37.07 KB** | **37.07 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.38 KB | 119.38 KB | 38.29 KB | 38.29 KB | UMD_PROFILING\nreact-dom.development.js | +0.2% | +0.3% | 837.76 KB | 839.2 KB | 191.42 KB | 191.96 KB | NODE_DEV\nreact-dom-server.node.development.js | +1.6% | +2.0% | 126.87 KB | 128.85 KB | 33.75 KB | 34.41 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **115.93 KB** | **115.93 KB** | **36.44 KB** | **36.44 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.31 KB** | **20.31 KB** | **7.51 KB** | **7.51 KB** | **NODE_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 119.61 KB | 119.61 KB | 37.5 KB | 37.5 KB | NODE_PROFILING\nReactDOM-dev.js | +0.2% | +0.3% | 934.9 KB | 936.53 KB | 208.04 KB | 208.59 KB | FB_WWW_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.68 KB | 3.68 KB | 1.33 KB | 1.33 KB | NODE_DEV\nReactDOMTesting-dev.js | +0.2% | +0.3% | 894.24 KB | 895.88 KB | 199.59 KB | 200.12 KB | FB_WWW_DEV\n**ReactDOMTesting-prod.js** | **0.0%** | **0.0%** | **381.65 KB** | **381.65 KB** | **69.44 KB** | **69.44 KB** | **FB_WWW_PROD**\nreact-dom-server.browser.development.js | +1.6% | +2.0% | 125.65 KB | 127.63 KB | 33.49 KB | 34.15 KB | NODE_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 53.77 KB | 53.77 KB | 14 KB | 14 KB | UMD_DEV\nReactDOMTesting-profiling.js | 0.0% | 0.0% | 381.65 KB | 381.65 KB | 69.44 KB | 69.44 KB | FB_WWW_PROFILING\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **19.9 KB** | **19.9 KB** | **7.36 KB** | **7.36 KB** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.1% | 3.34 KB | 3.34 KB | 1.26 KB | 1.26 KB | UMD_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **-0.0%** | **10.94 KB** | **10.94 KB** | **4.16 KB** | **4.16 KB** | **UMD_PROD**\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.17 KB** | **1.17 KB** | **690 B** | **692 B** | **UMD_PROD**\nReactDOMServer-dev.js | +1.7% | +2.1% | 135.1 KB | 137.46 KB | 34.31 KB | 35.02 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 49.55 KB | 49.55 KB | 13.51 KB | 13.51 KB | NODE_DEV\n**ReactDOMServer-prod.js** | **0.0%** | **0.0%** | **47.39 KB** | **47.39 KB** | **11.03 KB** | **11.03 KB** | **FB_WWW_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.1% | 2.94 KB | 2.94 KB | 1.17 KB | 1.17 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.79 KB** | **10.79 KB** | **4.09 KB** | **4.09 KB** | **NODE_PROD**\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.9 KB | 58.9 KB | 14.7 KB | 14.7 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1013 B** | **1013 B** | **602 B** | **603 B** | **NODE_PROD**\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.26 KB** | **10.26 KB** | **3.49 KB** | **3.49 KB** | **UMD_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactFabric-dev.js | +0.3% | +0.4% | 611.56 KB | 613.19 KB | 131.98 KB | 132.54 KB | RN_OSS_DEV\nReactNativeRenderer-dev.js | +0.3% | +0.4% | 629.54 KB | 631.17 KB | 136.25 KB | 136.83 KB | RN_OSS_DEV\n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **260.61 KB** | **260.61 KB** | **45.21 KB** | **45.22 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.76 KB | 271.76 KB | 47.34 KB | 47.35 KB | RN_OSS_PROFILING\n**ReactFabric-prod.js** | **0.0%** | **0.0%** | **252.51 KB** | **252.51 KB** | **43.72 KB** | **43.74 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | 0.0% | 0.0% | 263.67 KB | 263.67 KB | 45.86 KB | 45.87 KB | RN_OSS_PROFILING\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactART-dev.js | +0.3% | +0.5% | 564.68 KB | 566.32 KB | 118.16 KB | 118.74 KB | FB_WWW_DEV\n**ReactART-prod.js** | **0.0%** | **0.0%** | **234.44 KB** | **234.44 KB** | **39.76 KB** | **39.76 KB** | **FB_WWW_PROD**\nreact-art.development.js | -0.4% | -0.4% | 615.91 KB | 613.58 KB | 130.1 KB | 129.53 KB | UMD_DEV\n**react-art.production.min.js** | **0.0%** | **0.0%** | **104.06 KB** | **104.06 KB** | **31.49 KB** | **31.5 KB** | **UMD_PROD**\nreact-art.development.js | +0.3% | +0.5% | 517.19 KB | 518.64 KB | 111.38 KB | 111.92 KB | NODE_DEV\n**react-art.production.min.js** | **0.0%** | **0.0%** | **69.05 KB** | **69.05 KB** | **20.71 KB** | **20.72 KB** | **NODE_PROD**\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactTestRenderer-dev.js | +0.3% | +0.5% | 550.4 KB | 552.03 KB | 115.93 KB | 116.52 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | 0.0% | 39.53 KB | 39.53 KB | 9.49 KB | 9.49 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **0.0%** | **12.88 KB** | **12.88 KB** | **3.93 KB** | **3.93 KB** | **UMD_PROD**\nreact-test-renderer.development.js | -0.4% | -0.4% | 553.19 KB | 550.86 KB | 115.17 KB | 114.72 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **0.0%** | **71.1 KB** | **71.1 KB** | **21.6 KB** | **21.61 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.3% | +0.5% | 523.55 KB | 524.99 KB | 112.83 KB | 113.37 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **70.92 KB** | **70.92 KB** | **21.27 KB** | **21.28 KB** | **NODE_PROD**\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler.development.js | +0.3% | +0.4% | 553.49 KB | 554.93 KB | 116.95 KB | 117.45 KB | NODE_DEV\nreact-reconciler-reflection.development.js | 0.0% | -0.0% | 16 KB | 16 KB | 4.89 KB | 4.89 KB | NODE_DEV\n**react-reconciler.production.min.js** | **0.0%** | **0.0%** | **73.47 KB** | **73.47 KB** | **21.72 KB** | **21.73 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **2.8 KB** | **2.8 KB** | **1.2 KB** | **1.2 KB** | **NODE_PROD**\nreact-reconciler-persistent.development.js | +0.3% | +0.4% | 552.17 KB | 553.61 KB | 116.81 KB | 117.32 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **0.0%** | **0.0%** | **73.48 KB** | **73.49 KB** | **21.73 KB** | **21.73 KB** | **NODE_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: 0.0%\n\nReact: size: 0.0%, gzip: 0.0%\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against d24114997d12c9f6a61e90934e662b8690c2635b\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 4 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 739f20beda56a28a9212e3478571c866babee118...d24114997d12c9f6a61e90934e662b8690c2635b</p>\n\n\n \n## react\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact.development.js | -1.6% | -1.8% | 105.12 KB | 103.46 KB | 25.88 KB | 25.4 KB | UMD_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **12.6 KB** | **12.6 KB** | **4.91 KB** | **4.91 KB** | **UMD_PROD**\nreact.profiling.min.js | 0.0% | 0.0% | 16.14 KB | 16.14 KB | 6.01 KB | 6.01 KB | UMD_PROFILING\nreact.development.js | +3.4% | +4.3% | 61.57 KB | 63.64 KB | 16.46 KB | 17.17 KB | NODE_DEV\n**react.production.min.js** | **0.0%** | **0.0%** | **7.06 KB** | **7.06 KB** | **2.81 KB** | **2.81 KB** | **NODE_PROD**\nReact-dev.js | +3.4% | +4.1% | 71.25 KB | 73.7 KB | 17.97 KB | 18.7 KB | FB_WWW_DEV\n**React-prod.js** | **0.0%** | **:small_red_triangle:+0.1%** | **17.65 KB** | **17.65 KB** | **4.56 KB** | **4.56 KB** | **FB_WWW_PROD**\nReact-profiling.js | 0.0% | +0.1% | 17.65 KB | 17.65 KB | 4.56 KB | 4.56 KB | FB_WWW_PROFILING\n\n## react-art\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-art.development.js | -0.4% | -0.4% | 635.08 KB | 632.75 KB | 133.5 KB | 132.95 KB | UMD_DEV\n**react-art.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **106.49 KB** | **106.49 KB** | **32.14 KB** | **32.17 KB** | **UMD_PROD**\nreact-art.development.js | +0.3% | +0.5% | 535.62 KB | 537.06 KB | 114.83 KB | 115.36 KB | NODE_DEV\n**react-art.production.min.js** | **0.0%** | **0.0%** | **71.42 KB** | **71.42 KB** | **21.36 KB** | **21.37 KB** | **NODE_PROD**\nReactART-dev.js | +0.4% | +0.7% | 538.18 KB | 540.35 KB | 112.7 KB | 113.44 KB | FB_WWW_DEV\n**ReactART-prod.js** | **0.0%** | **0.0%** | **227.26 KB** | **227.26 KB** | **38.49 KB** | **38.5 KB** | **FB_WWW_PROD**\n\n## react-dom\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.7 KB | 123.7 KB | 38.56 KB | 38.57 KB | NODE_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 58.91 KB | 58.91 KB | 14.7 KB | 14.7 KB | UMD_DEV\nReactDOM-dev.js | +0.2% | +0.3% | 892.91 KB | 895.08 KB | 199.43 KB | 200.11 KB | FB_WWW_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10.27 KB** | **10.27 KB** | **3.49 KB** | **3.5 KB** | **UMD_PROD**\nReactDOMServer-dev.js | +1.8% | +2.2% | 134.18 KB | 136.61 KB | 34.14 KB | 34.89 KB | FB_WWW_DEV\nReactDOMTesting-dev.js | +0.2% | +0.3% | 868.12 KB | 870.29 KB | 194.32 KB | 194.99 KB | FB_WWW_DEV\nreact-dom-test-utils.development.js | 0.0% | 0.0% | 49.56 KB | 49.56 KB | 13.52 KB | 13.52 KB | NODE_DEV\nreact-dom-server.node.development.js | +1.5% | +1.9% | 128.38 KB | 130.36 KB | 33.97 KB | 34.63 KB | NODE_DEV\n**react-dom-test-utils.production.min.js** | **0.0%** | **0.0%** | **10.81 KB** | **10.81 KB** | **4.1 KB** | **4.1 KB** | **NODE_PROD**\n**react-dom-server.node.production.min.js** | **0.0%** | **0.0%** | **20.77 KB** | **20.77 KB** | **7.59 KB** | **7.59 KB** | **NODE_PROD**\nreact-dom.development.js | -0.3% | -0.3% | 912.78 KB | 910.44 KB | 199.95 KB | 199.27 KB | UMD_DEV\nreact-dom-server.browser.development.js | -1.3% | -0.9% | 137.89 KB | 136.12 KB | 35.08 KB | 34.78 KB | UMD_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **119.75 KB** | **119.75 KB** | **38.22 KB** | **38.22 KB** | **UMD_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.44 KB** | **20.44 KB** | **7.49 KB** | **7.49 KB** | **UMD_PROD**\nreact-dom.profiling.min.js | 0.0% | 0.0% | 123.4 KB | 123.4 KB | 39.39 KB | 39.39 KB | UMD_PROFILING\nreact-dom.development.js | +0.2% | +0.3% | 865.25 KB | 866.69 KB | 196.31 KB | 196.86 KB | NODE_DEV\nreact-dom-server.browser.development.js | +1.6% | +2.0% | 127.17 KB | 129.14 KB | 33.71 KB | 34.37 KB | NODE_DEV\n**react-dom.production.min.js** | **0.0%** | **0.0%** | **119.9 KB** | **119.9 KB** | **37.45 KB** | **37.45 KB** | **NODE_PROD**\n**react-dom-server.browser.production.min.js** | **0.0%** | **0.0%** | **20.36 KB** | **20.36 KB** | **7.44 KB** | **7.44 KB** | **NODE_PROD**\n**ReactDOM-prod.js** | **0.0%** | **0.0%** | **370.74 KB** | **370.74 KB** | **67.5 KB** | **67.51 KB** | **FB_WWW_PROD**\n**ReactDOMServer-prod.js** | **0.0%** | **-0.0%** | **46.68 KB** | **46.68 KB** | **10.85 KB** | **10.84 KB** | **FB_WWW_PROD**\nReactDOM-profiling.js | 0.0% | 0.0% | 381.95 KB | 381.95 KB | 69.63 KB | 69.63 KB | FB_WWW_PROFILING\nreact-dom-unstable-native-dependencies.development.js | 0.0% | 0.0% | 55.87 KB | 55.87 KB | 14.47 KB | 14.47 KB | NODE_DEV\nreact-dom-unstable-fizz.node.development.js | 0.0% | +0.1% | 3.69 KB | 3.69 KB | 1.34 KB | 1.34 KB | NODE_DEV\n**react-dom-unstable-native-dependencies.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **10 KB** | **10 KB** | **3.37 KB** | **3.38 KB** | **NODE_PROD**\n**react-dom-unstable-fizz.node.production.min.js** | **0.0%** | **:small_red_triangle:+0.3%** | **1.16 KB** | **1.16 KB** | **662 B** | **664 B** | **NODE_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 3.35 KB | 3.35 KB | 1.27 KB | 1.27 KB | UMD_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **1.19 KB** | **1.19 KB** | **699 B** | **700 B** | **UMD_PROD**\nreact-dom-unstable-fizz.browser.development.js | 0.0% | +0.2% | 2.95 KB | 2.95 KB | 1.18 KB | 1.18 KB | NODE_DEV\n**react-dom-unstable-fizz.browser.production.min.js** | **0.0%** | **:small_red_triangle:+0.2%** | **1 KB** | **1 KB** | **610 B** | **611 B** | **NODE_PROD**\n\n## react-test-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactTestRenderer-dev.js | +0.3% | +0.5% | 550.41 KB | 552.04 KB | 115.93 KB | 116.52 KB | FB_WWW_DEV\nreact-test-renderer-shallow.development.js | 0.0% | 0.0% | 39.55 KB | 39.55 KB | 9.49 KB | 9.49 KB | UMD_DEV\n**react-test-renderer-shallow.production.min.js** | **0.0%** | **0.0%** | **12.9 KB** | **12.9 KB** | **3.93 KB** | **3.94 KB** | **UMD_PROD**\nreact-test-renderer.development.js | -0.4% | -0.4% | 553.22 KB | 550.89 KB | 115.18 KB | 114.73 KB | UMD_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **0.0%** | **71.13 KB** | **71.13 KB** | **21.62 KB** | **21.63 KB** | **UMD_PROD**\nreact-test-renderer.development.js | +0.3% | +0.5% | 523.58 KB | 525.02 KB | 112.84 KB | 113.38 KB | NODE_DEV\n**react-test-renderer.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **70.94 KB** | **70.94 KB** | **21.29 KB** | **21.3 KB** | **NODE_PROD**\n\n## react-native-renderer\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **260.62 KB** | **260.62 KB** | **45.22 KB** | **45.23 KB** | **RN_OSS_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 271.77 KB | 271.77 KB | 47.35 KB | 47.36 KB | RN_OSS_PROFILING\n**ReactFabric-prod.js** | **0.0%** | **0.0%** | **252.52 KB** | **252.52 KB** | **43.73 KB** | **43.74 KB** | **RN_OSS_PROD**\nReactFabric-profiling.js | 0.0% | 0.0% | 263.68 KB | 263.68 KB | 45.87 KB | 45.88 KB | RN_OSS_PROFILING\nReactFabric-dev.js | +0.3% | +0.4% | 614.45 KB | 616.08 KB | 132.37 KB | 132.93 KB | RN_FB_DEV\n**ReactFabric-prod.js** | **0.0%** | **0.0%** | **252.87 KB** | **252.87 KB** | **43.81 KB** | **43.83 KB** | **RN_FB_PROD**\nReactNativeRenderer-dev.js | +0.3% | +0.4% | 629.55 KB | 631.19 KB | 136.26 KB | 136.83 KB | RN_OSS_DEV\nReactFabric-profiling.js | 0.0% | 0.0% | 264.02 KB | 264.02 KB | 45.94 KB | 45.95 KB | RN_FB_PROFILING\nReactNativeRenderer-dev.js | +0.3% | +0.4% | 632.53 KB | 634.16 KB | 136.65 KB | 137.24 KB | RN_FB_DEV\n**ReactNativeRenderer-prod.js** | **0.0%** | **0.0%** | **261.01 KB** | **261.01 KB** | **45.28 KB** | **45.29 KB** | **RN_FB_PROD**\nReactNativeRenderer-profiling.js | 0.0% | 0.0% | 272.16 KB | 272.16 KB | 47.41 KB | 47.42 KB | RN_FB_PROFILING\nReactFabric-dev.js | +0.3% | +0.4% | 611.57 KB | 613.2 KB | 131.98 KB | 132.54 KB | RN_OSS_DEV\n\n## react-reconciler\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-reconciler-persistent.development.js | +0.3% | +0.4% | 552.18 KB | 553.62 KB | 116.82 KB | 117.33 KB | NODE_DEV\nreact-reconciler-reflection.development.js | 0.0% | -0.0% | 16.01 KB | 16.01 KB | 4.9 KB | 4.9 KB | NODE_DEV\n**react-reconciler-persistent.production.min.js** | **0.0%** | **0.0%** | **73.5 KB** | **73.5 KB** | **21.73 KB** | **21.74 KB** | **NODE_PROD**\n**react-reconciler-reflection.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **2.81 KB** | **2.81 KB** | **1.21 KB** | **1.21 KB** | **NODE_PROD**\nreact-reconciler.development.js | +0.3% | +0.4% | 574.25 KB | 575.69 KB | 120.84 KB | 121.34 KB | NODE_DEV\n**react-reconciler.production.min.js** | **0.0%** | **0.0%** | **76.25 KB** | **76.25 KB** | **22.4 KB** | **22.41 KB** | **NODE_PROD**\n\n </details>\n \n\nReactDOM: size: 0.0%, gzip: :small_red_triangle:+0.1%\n\nReact: size: 0.0%, gzip: 0.0%\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against d24114997d12c9f6a61e90934e662b8690c2635b\n</p>\n",
"Looks like the tests doesn’t “see” the stack.",
"Yeah, only for shallow renderer. I think it just needs to play along nicely by setting the current stack function. ",
"k this should fix it",
">It would be nice if react-shallow-renderer did this too.\r\n\r\nWhy?\r\n",
"@gaearon wouldn't it make more sense to add native ESM to prop-types? I'm happy to do that.",
"I think that would be good in general but the concern is that the ecosystem is not ready for transitive usage of ESM. We don’t want to make them autodiscoverable yet, but then it’s hard to try them without manually aliasing everything. So we were hoping to make this very scoped. Since we don’t *really* need either of those deps in a meaningful way. We also wanted to make React itself have zero dependencies anyway. ",
"Node 13.3+ supports it and it’s planned to be backported into node 12 in April, I’m not sure why the ecosystem wouldn’t be ready.\r\n\r\n“zero dependencies” isn’t honestly reached by inlining dependencies :-/ I’m confused why that’s a valuable.",
"Zero dependencies is a valuable property for predictability, security, risk of downstream breakages and being able to reason eg about cost. Also makes things easier for our maintainability.\r\n\r\nIt comes with tradeoffs too but if this is the only one left, it doesn’t provide much value to leave it in. Especially since it’s DEV only it doesn’t get duplicated in prod so it doesn’t come with the normal downside of code duplication in the production bundles.\r\n\r\nAnother nice property is that now `prop-types` isn't privileged and you could publish alternative variants for checkers. React just calls the checkers.",
"FYI it's been reported that this change broke behavior of `PropTypes.resetWarningCache()`, which makes sense."
] | 2020-02-25 15:53:24 | 2020-03-26 20:52:45 | 2020-02-28 01:21:55 | COLLABORATOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18127', 'html_url': 'https://github.com/facebook/react/pull/18127', 'diff_url': 'https://github.com/facebook/react/pull/18127.diff', 'patch_url': 'https://github.com/facebook/react/pull/18127.patch', 'merged_at': datetime.datetime(2020, 2, 28, 1, 21, 55)} | This is to unblock the ESM work. There is no good story for using a CJS dependency so let's just inline this back. I lost the last argument because `console.error` now "sees" the stack again. | {'url': 'https://api.github.com/repos/facebook/react/issues/18127/reactions', 'total_count': 3, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 1, 'confused': 0, 'heart': 1, 'rocket': 1, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18127/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18126 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18126/labels{/name} | https://api.github.com/repos/facebook/react/issues/18126/comments | https://api.github.com/repos/facebook/react/issues/18126/events | https://github.com/facebook/react/pull/18126 | 570,608,338 | MDExOlB1bGxSZXF1ZXN0Mzc5NjE0MDU4 | 18,126 | Add @nolint to FB bundle headers | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18126/builds/12070) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit e24d36fae073f2c9570f264d5ccb36618977d96b:\n\n|Sandbox| Source |\n|--|--|\n|[goofy-elgamal-dp82v](https://codesandbox.io/s/goofy-elgamal-dp82v)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against e24d36fae073f2c9570f264d5ccb36618977d96b\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against e24d36fae073f2c9570f264d5ccb36618977d96b\n</p>\n",
"What is this for? Does it still run the lint on the bundles in the React repo or just not in FB?\r\n\r\nWe just caught a bug that would’ve gone to production by running lint on the bundles last week.",
"This is just for the FB linting. (The directive is not respected by eslint — only by arc lint.)"
] | 2020-02-25 14:27:06 | 2020-02-25 15:24:22 | 2020-02-25 14:45:32 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18126', 'html_url': 'https://github.com/facebook/react/pull/18126', 'diff_url': 'https://github.com/facebook/react/pull/18126.diff', 'patch_url': 'https://github.com/facebook/react/pull/18126.patch', 'merged_at': datetime.datetime(2020, 2, 25, 14, 45, 32)} | Let's add the @nolint header to the FB/RN bundles so that we don't run FB eslint on the bundles internally. | {'url': 'https://api.github.com/repos/facebook/react/issues/18126/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18126/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18125 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18125/labels{/name} | https://api.github.com/repos/facebook/react/issues/18125/comments | https://api.github.com/repos/facebook/react/issues/18125/events | https://github.com/facebook/react/pull/18125 | 570,588,537 | MDExOlB1bGxSZXF1ZXN0Mzc5NTk3NjEz | 18,125 | [react-interactions] Ensure blur to window disengages press | {'login': 'trueadm', 'id': 1519870, 'node_id': 'MDQ6VXNlcjE1MTk4NzA=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1519870?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/trueadm', 'html_url': 'https://github.com/trueadm', 'followers_url': 'https://api.github.com/users/trueadm/followers', 'following_url': 'https://api.github.com/users/trueadm/following{/other_user}', 'gists_url': 'https://api.github.com/users/trueadm/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/trueadm/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/trueadm/subscriptions', 'organizations_url': 'https://api.github.com/users/trueadm/orgs', 'repos_url': 'https://api.github.com/users/trueadm/repos', 'events_url': 'https://api.github.com/users/trueadm/events{/privacy}', 'received_events_url': 'https://api.github.com/users/trueadm/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18125/builds/12066) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 54c96b963c9f2a4bdff1e85225988b83a521e4ab:\n\n|Sandbox| Source |\n|--|--|\n|[musing-rosalind-9gg7i](https://codesandbox.io/s/musing-rosalind-9gg7i)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 78e816032c8af962343abbf384e06f3e9bae9269...54c96b963c9f2a4bdff1e85225988b83a521e4ab</p>\n\n\n \n## react-interactions\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nReactEventsPressLegacy-dev.js | +2.4% | +2.4% | 23.5 KB | 24.08 KB | 5.72 KB | 5.86 KB | FB_WWW_DEV\n**ReactEventsPressLegacy-prod.js** | **:small_red_triangle:+0.7%** | **:small_red_triangle:+1.1%** | **16.86 KB** | **16.98 KB** | **3.7 KB** | **3.74 KB** | **FB_WWW_PROD**\n**react-interactions-events/context-menu.production.min.js** | **0.0%** | **-0.1%** | **1.42 KB** | **1.42 KB** | **758 B** | **757 B** | **UMD_PROD**\n**react-interactions-events/hover.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **3.3 KB** | **3.3 KB** | **1.17 KB** | **1.17 KB** | **NODE_PROD**\nreact-interactions-events/press-legacy.development.js | +2.4% | +2.3% | 25.02 KB | 25.61 KB | 6.13 KB | 6.27 KB | UMD_DEV\n**react-interactions-events/press-legacy.production.min.js** | **:small_red_triangle:+0.6%** | **:small_red_triangle:+1.2%** | **7.3 KB** | **7.34 KB** | **2.75 KB** | **2.78 KB** | **UMD_PROD**\nreact-interactions-events/press-legacy.development.js | +2.4% | +2.3% | 23.63 KB | 24.19 KB | 6.01 KB | 6.15 KB | NODE_DEV\n**react-interactions-events/press-legacy.production.min.js** | **:small_red_triangle:+0.6%** | **:small_red_triangle:+1.2%** | **7.1 KB** | **7.15 KB** | **2.68 KB** | **2.71 KB** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 54c96b963c9f2a4bdff1e85225988b83a521e4ab\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\n\n <details>\n <summary>Details of bundled changes.</summary>\n\n <p>Comparing: 78e816032c8af962343abbf384e06f3e9bae9269...54c96b963c9f2a4bdff1e85225988b83a521e4ab</p>\n\n\n \n## react-interactions\nFile | Filesize Diff | Gzip Diff | Prev Size | Current Size | Prev Gzip | Current Gzip | ENV\n --- | --- | --- | --- | --- | --- | --- | --- \nreact-interactions-events/focus.development.js | 0.0% | -0.0% | 16.77 KB | 16.77 KB | 3.37 KB | 3.37 KB | UMD_DEV\nreact-interactions-events/keyboard.development.js | 0.0% | 0.0% | 6.34 KB | 6.34 KB | 2.3 KB | 2.3 KB | UMD_DEV\nReactEventsPressLegacy-dev.js | +2.4% | +2.4% | 23.5 KB | 24.08 KB | 5.72 KB | 5.86 KB | FB_WWW_DEV\n**ReactEventsPressLegacy-prod.js** | **:small_red_triangle:+0.7%** | **:small_red_triangle:+1.1%** | **16.86 KB** | **16.98 KB** | **3.7 KB** | **3.74 KB** | **FB_WWW_PROD**\nreact-interactions-events/keyboard.development.js | 0.0% | 0.0% | 5.78 KB | 5.78 KB | 2.22 KB | 2.22 KB | NODE_DEV\n**react-interactions-events/hover.production.min.js** | **0.0%** | **:small_red_triangle:+0.1%** | **3.5 KB** | **3.5 KB** | **1.25 KB** | **1.25 KB** | **UMD_PROD**\nreact-interactions-events/press-legacy.development.js | +2.4% | +2.3% | 25.03 KB | 25.62 KB | 6.13 KB | 6.27 KB | UMD_DEV\n**react-interactions-events/press-legacy.production.min.js** | **:small_red_triangle:+0.6%** | **:small_red_triangle:+1.1%** | **7.31 KB** | **7.35 KB** | **2.76 KB** | **2.79 KB** | **UMD_PROD**\nreact-interactions-events/context-menu.development.js | 0.0% | -0.1% | 2.54 KB | 2.54 KB | 996 B | 995 B | NODE_DEV\nreact-interactions-events/press-legacy.development.js | +2.4% | +2.3% | 23.64 KB | 24.21 KB | 6.02 KB | 6.16 KB | NODE_DEV\n**react-interactions-events/context-menu.production.min.js** | **0.0%** | **-0.1%** | **1.23 KB** | **1.23 KB** | **696 B** | **695 B** | **NODE_PROD**\n**react-interactions-events/press-legacy.production.min.js** | **:small_red_triangle:+0.6%** | **:small_red_triangle:+1.2%** | **7.12 KB** | **7.16 KB** | **2.69 KB** | **2.72 KB** | **NODE_PROD**\n\n </details>\n \n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 54c96b963c9f2a4bdff1e85225988b83a521e4ab\n</p>\n",
"Shouldn't this also be added to Tap / non-legacy Press? Those are the ones we would port in the future, so this detail should be incorporated imo",
"@necolas Definitely. The should both be ported to those responders at some point too."
] | 2020-02-25 13:56:01 | 2020-02-25 16:48:56 | 2020-02-25 14:14:20 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18125', 'html_url': 'https://github.com/facebook/react/pull/18125', 'diff_url': 'https://github.com/facebook/react/pull/18125.diff', 'patch_url': 'https://github.com/facebook/react/pull/18125.patch', 'merged_at': datetime.datetime(2020, 2, 25, 14, 14, 20)} | This PR fixes an issue that was found internally. Specifically, if you engage a press and then a browser dialog opens, we should ensure that the press disengages. Otherwise, without this change the press with remain engaged. Also added a regression test to ensure we keep this behavior in the future. It also handles the case where the press target has been blurred, so we also properly disengage there too. | {'url': 'https://api.github.com/repos/facebook/react/issues/18125/reactions', 'total_count': 2, '+1': 2, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18125/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18124 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18124/labels{/name} | https://api.github.com/repos/facebook/react/issues/18124/comments | https://api.github.com/repos/facebook/react/issues/18124/events | https://github.com/facebook/react/pull/18124 | 570,583,854 | MDExOlB1bGxSZXF1ZXN0Mzc5NTkzNjU2 | 18,124 | Changelog for 16.13.0 | {'login': 'threepointone', 'id': 18808, 'node_id': 'MDQ6VXNlcjE4ODA4', 'avatar_url': 'https://avatars.githubusercontent.com/u/18808?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/threepointone', 'html_url': 'https://github.com/threepointone', 'followers_url': 'https://api.github.com/users/threepointone/followers', 'following_url': 'https://api.github.com/users/threepointone/following{/other_user}', 'gists_url': 'https://api.github.com/users/threepointone/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/threepointone/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/threepointone/subscriptions', 'organizations_url': 'https://api.github.com/users/threepointone/orgs', 'repos_url': 'https://api.github.com/users/threepointone/repos', 'events_url': 'https://api.github.com/users/threepointone/events{/privacy}', 'received_events_url': 'https://api.github.com/users/threepointone/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}
{'id': 1775958285, 'node_id': 'MDU6TGFiZWwxNzc1OTU4Mjg1', 'url': 'https://api.github.com/repos/facebook/react/labels/React%20Core%20Team', 'name': 'React Core Team', 'color': '9149d1', 'default': False, 'description': 'Opened by a member of the React Core Team'}] | closed | false | null | [] | null | [
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18124/builds/12287) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit 586170531553beb6a266c6d94c23fb98e11343c4:\n\n|Sandbox| Source |\n|--|--|\n|[stoic-field-oq7dd](https://codesandbox.io/s/stoic-field-oq7dd)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 586170531553beb6a266c6d94c23fb98e11343c4\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against 586170531553beb6a266c6d94c23fb98e11343c4\n</p>\n"
] | 2020-02-25 13:48:15 | 2020-02-26 20:21:15 | 2020-02-26 20:15:02 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18124', 'html_url': 'https://github.com/facebook/react/pull/18124', 'diff_url': 'https://github.com/facebook/react/pull/18124.diff', 'patch_url': 'https://github.com/facebook/react/pull/18124.patch', 'merged_at': datetime.datetime(2020, 2, 26, 20, 15, 1)} | ## 16.13.0 (March 2, 2020)
### React
* Warn when a string ref is used in a manner that's not amenable to a future codemod ([@lunaruan](https://github.com/lunaruan) in [#17864](https://github.com/facebook/react/pull/17864))
* Deprecate `React.createFactory()` ([@trueadm](https://github.com/trueadm) in [#17878](https://github.com/facebook/react/pull/17878))
### React DOM
* Warn when changes in `style` may cause an unexpected collision ([@sophiebits](https://github.com/sophiebits) in [#14181](https://github.com/facebook/react/pull/14181), [#18002](https://github.com/facebook/react/pull/18002))
* Warn when a function component is updated during another component's render phase ([@acdlite]((https://github.com/acdlite)) in [#17099](https://github.com/facebook/react/pull/17099))
* Deprecate `unstable_createPortal` ([@trueadm](https://github.com/trueadm) in [#17880](https://github.com/facebook/react/pull/17880))
* Flush all passive effect (`useEffect`) destroy functions before calling subsequent create functions ([@bvaughn](https://github.com/bvaughn) in [#17925](https://github.com/facebook/react/pull/17925), [#17947](https://github.com/facebook/react/pull/17947))
* Fix `onMouseEnter` being fired on disabled buttons ([@AlfredoGJ](https://github.com/AlfredoGJ) in [#17675](https://github.com/facebook/react/pull/17675))
* Call `shouldComponentUpdate` twice when developing in `StrictMode` ([@bvaughn](https://github.com/bvaughn) in [#17942](https://github.com/facebook/react/pull/17942))
* Add `version` property to ReactDOM ([@ealush](https://github.com/ealush) in [#15780](https://github.com/facebook/react/pull/15780))
* Don't call `toString()` of `dangerouslySetInnerHTML` ([@sebmarkbage](https://github.com/sebmarkbage) in [#17773](https://github.com/facebook/react/pull/17773))
* Show component stacks in more warnings ([@gaearon](https://github.com/gaearon) in [#17922](https://github.com/facebook/react/pull/17922), [#17586](https://github.com/facebook/react/pull/17586))
### Concurrent Mode (Experimental)
* Warn for problematic usages of `ReactDOM.createRoot()` ([@trueadm](https://github.com/trueadm) in [#17937](https://github.com/facebook/react/pull/17937))
* Remove `ReactDOM.createRoot()` callback params and added warnings on usage ([@bvaughn](https://github.com/bvaughn) in [#17916](https://github.com/facebook/react/pull/17916))
* Don't group Idle/Offscreen work with other work ([@sebmarkbage](https://github.com/sebmarkbage) in [#17456](https://github.com/facebook/react/pull/17456))
* Adjust `SuspenseList` CPU bound heuristic ([@sebmarkbage](https://github.com/sebmarkbage) in [#17455](https://github.com/facebook/react/pull/17455))
* Add missing event plugin priorities ([@trueadm](https://github.com/trueadm) in [#17914](https://github.com/facebook/react/pull/17914))
* Fix `isPending` only being true when transitioning from inside an input event ([@acdlite](https://github.com/acdlite) in [#17382](https://github.com/facebook/react/pull/17382))
* Fix `React.memo` components dropping updates when interrupted by a higher priority update ([@acdlite]((https://github.com/acdlite)) in [#18091](https://github.com/facebook/react/pull/18091))
* Don't warn when suspending at the wrong priority ([@gaearon](https://github.com/gaearon) in [#17971](https://github.com/facebook/react/pull/17971))
* Fix a bug with rebasing updates ([@acdlite](https://github.com/acdlite) and [@sebmarkbage](https://github.com/sebmarkbage) in [#17560](https://github.com/facebook/react/pull/17560), [#17510](https://github.com/facebook/react/pull/17510), [#17483](https://github.com/facebook/react/pull/17483), [#17480](https://github.com/facebook/react/pull/17480))
| {'url': 'https://api.github.com/repos/facebook/react/issues/18124/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18124/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18123 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18123/labels{/name} | https://api.github.com/repos/facebook/react/issues/18123/comments | https://api.github.com/repos/facebook/react/issues/18123/events | https://github.com/facebook/react/issues/18123 | 570,528,062 | MDU6SXNzdWU1NzA1MjgwNjI= | 18,123 | Discussion: useEffect hook with array dependency that has a default value causes render loop | {'login': 'gregor-mueller', 'id': 28727932, 'node_id': 'MDQ6VXNlcjI4NzI3OTMy', 'avatar_url': 'https://avatars.githubusercontent.com/u/28727932?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/gregor-mueller', 'html_url': 'https://github.com/gregor-mueller', 'followers_url': 'https://api.github.com/users/gregor-mueller/followers', 'following_url': 'https://api.github.com/users/gregor-mueller/following{/other_user}', 'gists_url': 'https://api.github.com/users/gregor-mueller/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/gregor-mueller/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/gregor-mueller/subscriptions', 'organizations_url': 'https://api.github.com/users/gregor-mueller/orgs', 'repos_url': 'https://api.github.com/users/gregor-mueller/repos', 'events_url': 'https://api.github.com/users/gregor-mueller/events{/privacy}', 'received_events_url': 'https://api.github.com/users/gregor-mueller/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}
{'id': 1775957182, 'node_id': 'MDU6TGFiZWwxNzc1OTU3MTgy', 'url': 'https://api.github.com/repos/facebook/react/labels/Resolution:%20Stale', 'name': 'Resolution: Stale', 'color': 'e6e6e6', 'default': False, 'description': 'Automatically closed due to inactivity'}] | closed | false | null | [] | null | [
"The pitfall or gotcha, is going into endless loop with code like these. \r\n\r\n```jsx \r\nfunction MyComponent({ arrayProp = [], title, onEvent }) { \r\n // arrayProp default prop value is a new object on every render\r\n\r\n useEffect(() => {\r\n console.log(\"arrayProp effect\", arrayProp);\r\n onEvent(title + \"1\"); // title prop gets updated triggering a re-render, but only once\r\n\r\n // because this default prop is new on every render, this creates the endless loop\r\n }, [arrayProp]); \r\n\r\n return (\r\n <div>\r\n <h1>{title}</h1>\r\n <p>You will run into a render loop</p>\r\n </div>\r\n );\r\n}\r\n``` \r\n\r\nOne way to avoid the endless loop gotcha is to use default props like this. \r\nBut I am uncertain if this is recommended to use or not. This might be deprecated in the future I think?\r\n\r\n```jsx\r\nfunction MyComponent({ arrayProp, title, onEvent }) { \r\n // code ...\r\n}\r\n\r\nMyComponent.defaultProps = {\r\n arrayProp: []\r\n}\r\n```",
"To avoid this you can declare it outside e.g.\r\n\r\n```js\r\nconst defaultArrayProp = [];\r\nfunction MyComponent({ arrayProp = defaultArrayProp, title, onEvent }) { \r\n```\r\n\r\nConsumers of your component might still encounter this pitfall when using `<MyComponent arrayProp={[]} />` if `MyComponent` triggers a re-render in its owner as well.",
"I know that you can work around this. It's actually in the example.\r\n\r\n@kunukn it's not advised to use `defaultProps` for functional components, as you already figured.\r\nThe solution from @eps1lon is the one I generally go for.\r\n\r\nBut the thing is, that this is something that multiple developers ran into this pitfall already. As react is often learned by JavaScript beginners, this is something that should just be on the documentation for `useEffect`, I guess. I don't know whether anonymously created objects or arrays as props in render functions are something that is generally known to cause re-renders but it's something that I've seen done wrong plenty. Essentially it's the same and should be addressed as well - at least via documentation - to make using react more accessible.\r\n\r\nAs I said, this is not actually a \"bug\" but it feels a bit weird that react does not handle this (because everywhere you see people showing you that that's the way to do default props for functional components).\r\n\r\nIf you know how JavaScript works of course this is nothing new for you. 🤷♂ ",
"@ffgregormueller I think this is \"normal\" behaviour. By defaulting to a declared variable, default stays the same and so dependency array checks ok. Putting an empty array declares a new one every time so the comparison in the array doesn't match. \r\nI may be wrong, but I believe this is normal JS behaviour. ",
"@tomasyaya No, you are not wrong, you are totally right! It absolutely **is** default JS behavior.\r\n\r\nI changed the title of issue, as this is in fact not a bug.\r\nBut the point I tried to get across is that in some cases react intelligently takes care of comparing props and deciding whether or not to re-render.\r\n\r\nI just wanted to start a discussion whether there should be a mechanism here as well that e.g. internally checks for arrays or objects to be empty instead of only referential equality and skips invoking the effect when this dependency hasn't changed.\r\n\r\nJust to make using react a bit easier for beginners.",
"In case someone looks for alternative approaches, I created a small helper (which also allows for some type inference in case TS is used):\r\n\r\n```ts\r\n// emptyArray.ts\r\nconst instance = Object.freeze([]);\r\n\r\nexport default function emptyArray<T>(): T[] {\r\n // Ignoring the `readonly` part\r\n // @ts-ignore\r\n return instance;\r\n}\r\n```\r\n\r\n```ts\r\nfunction MyComponent({ arrayProp = emptyArray(), title, onEvent }) { \r\n```\r\n",
"I'm sorry if 'm wrong. I think usage of memos/refs with empty array as initial value will overcome this issue. ",
"I agree with @tejas-bontadka, I think memoizing the dependency with `useMemo` will solve the issue the react way.",
"Sure, this would be correct but also a bit too much hassle where just having a reference to an empty array would also help.\r\nNote: having an empty array or even object as default is something I repeatedly see being done wrongly as mentioned in the start of the topic.\r\nAs beginners would run into this, I don't think it is very beginner-friendly to have them having to work around this (e.g. using `useMemo`). I guess this would just lead to beginners always wrapping everything in `useMemo`, trying to fight unnecessary re-renders which will just cause memory issues in the long run.\r\n\r\n@tejas-bontadka, @martinjaime is this what you've been thinking of?\r\n\r\n```javascript\r\nfunction MyComponent({ arrayProp, title, onEvent }) { \r\n \r\n // this fixes the render loop but seems a bit over engineered\r\n // as a simple reference to an empty array would also fix it\r\n const arrayPropToUse = useMemo(() => {\r\n if (!Array.isArray(arrayProp)) return [];\r\n return arrayProp;\r\n }, [arrayProp]);\r\n\r\n useEffect(() => {\r\n console.log(\"arrayPropToUse effect\", arrayPropToUse);\r\n onEvent(title + \"1\"); // title prop gets updated triggering a re-render, but only once\r\n }, [arrayPropToUse]); \r\n\r\n return (\r\n <div>\r\n <h1>{title}</h1>\r\n <p>Feels a bit over engineered</p>\r\n </div>\r\n );\r\n}\r\n```\r\n\r\nMy whole point is not that there are no solutions to this but that **this is nothing a beginner would know or work around effectively** (without developing potentially bad habits like using `useMemo` everywhere). But that's just an assumption on my side (based on what I've seen), which should of course be discussed.",
"This issue has been automatically marked as stale. **If this issue is still affecting you, please leave any comment** (for example, \"bump\"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!\n",
"Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you!\n",
"I've came across this issue in a similar way, and the render loop happens when the prop that has a default value is undefined. It seems the default value is causing the useEffect, and when it re-renders, it launches the useEffect again, and so on and so forth.\r\n\r\nIn my case I've fixed this by passing the default value when using the component:\r\n```\r\n<SomeComponent arrayProp={myArray || []} />\r\n```\r\n\r\nI would've rather have the default value inside the component's prop declaration and not having to worry edge cases in each component call"
] | 2020-02-25 12:14:38 | 2021-10-19 23:50:48 | 2020-10-12 01:57:16 | NONE | null | null | null | So maybe this is not a bug (because it's default JavaScript behavior) but a pitfall that should be documented in the `useEffect`-section of the hooks documentation. I'm not quite sure because it feels like react should handle this as default value assignment on destructuring functional component props is recommended.
When a `useEffect`-Hook that has an array-prop with a default value as one of its dependencies calls a function mutating any other prop, a render loop will occur.
React version: 16.12.0
## Steps To Reproduce
1. Create a functional component that has 3 props:
-- an array prop that has a default value (created within destructuring)
-- any other prop (e.g. string)
-- a callback function to mutate the second prop
2. Have an `useEffect` function that calls the callback to mutate the second prop. The `useEffect` needs to have the array prop as one of its dependencies
Link to code example:
https://codesandbox.io/s/smoosh-field-fqduq
## The current behavior
When the default value for the array prop is set to an "anonymous" array (or object) inside of the props destructuring, the `useEffect` will always trigger and so the second prop will be changed via the callback function and a re-render will happen. Then the effect will be triggered again as the value for the array will have changed again.
## The expected behavior
Default values for arrays (and objects) can be assigned within the destructuring of the props without causing re-renders (or even render loops) when the mentioned `useEffect` is not present (like, why should it trigger a re-render?).
I'd expect react to behave the same in this case (don't compare empty arrays/objects by reference). If not, there should be at least a warning in the docs of `useEffect` that this is something to look out for.
## Workaround
If the default prop is saved as a variable outside the functional component and then assigned as the default value (read: if you have referential equality), the issue does not occur obviously (default JavaScript behavior). | {'url': 'https://api.github.com/repos/facebook/react/issues/18123/reactions', 'total_count': 16, '+1': 14, '-1': 1, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 1, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18123/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18122 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18122/labels{/name} | https://api.github.com/repos/facebook/react/issues/18122/comments | https://api.github.com/repos/facebook/react/issues/18122/events | https://github.com/facebook/react/issues/18122 | 570,502,799 | MDU6SXNzdWU1NzA1MDI3OTk= | 18,122 | ReactJS POSTrequest does'nt work(404) but GETrequest works | {'login': 'Bhass99', 'id': 39690995, 'node_id': 'MDQ6VXNlcjM5NjkwOTk1', 'avatar_url': 'https://avatars.githubusercontent.com/u/39690995?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/Bhass99', 'html_url': 'https://github.com/Bhass99', 'followers_url': 'https://api.github.com/users/Bhass99/followers', 'following_url': 'https://api.github.com/users/Bhass99/following{/other_user}', 'gists_url': 'https://api.github.com/users/Bhass99/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/Bhass99/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/Bhass99/subscriptions', 'organizations_url': 'https://api.github.com/users/Bhass99/orgs', 'repos_url': 'https://api.github.com/users/Bhass99/repos', 'events_url': 'https://api.github.com/users/Bhass99/events{/privacy}', 'received_events_url': 'https://api.github.com/users/Bhass99/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"This has no relation to React, which is a UI library. "
] | 2020-02-25 11:28:15 | 2020-02-25 11:32:29 | 2020-02-25 11:32:29 | NONE | null | null | null | I have a very strange problem, when I POST to my PHP file it returns a 404 status code and when I do a GET request it gets me a status code of 200. I have tried my requests with XMLHttpRequest, Fetch, Axios and jquery but all give the same response. What am I doing wrong?
These are my ajax requests
const body = { firstName: 'Fred',lastName: 'Flintstone' };
const handleSubmit = async (e) => {
e.preventDefault()
fetch(`ajaxHandler.php`)
.then(res =>
console.log(res)
)
fetch('ajaxHandler.php', {
method: 'POST',
body: JSON.stringify(body),
headers: {
'Content-Type': 'application/json'
}
}).then(res => {
console.log(res);
}).catch(err => console.log(err));
}
POST request response from the console.
login.js:20 POST http://localhost:3000/ajaxHandler.php 404 (Not Found)
handleSubmit @ login.js:20
onClick @ login.js:65
callCallback @ react-dom.development.js:336
invokeGuardedCallbackDev @ react-dom.development.js:385
invokeGuardedCallback @ react-dom.development.js:440
invokeGuardedCallbackAndCatchFirstError @ react-dom.development.js:454
executeDispatch @ react-dom.development.js:584
executeDispatchesInOrder @ react-dom.development.js:609
executeDispatchesAndRelease @ react-dom.development.js:713
executeDispatchesAndReleaseTopLevel @ react-dom.development.js:722
forEachAccumulated @ react-dom.development.js:694
runEventsInBatch @ react-dom.development.js:739
runExtractedPluginEventsInBatch @ react-dom.development.js:880
handleTopLevel @ react-dom.development.js:5803
batchedEventUpdates$1 @ react-dom.development.js:24401
batchedEventUpdates @ react-dom.development.js:1415
dispatchEventForPluginEventSystem @ react-dom.development.js:5894
attemptToDispatchEvent @ react-dom.development.js:6010
dispatchEvent @ react-dom.development.js:5914
unstable_runWithPriority @ scheduler.development.js:697
runWithPriority$2 @ react-dom.development.js:12149
discreteUpdates$1 @ react-dom.development.js:24417
discreteUpdates @ react-dom.development.js:1438
dispatchDiscreteEvent @ react-dom.development.js:5881
login.js:28 Response {type: "basic", url: "http://localhost:3000/ajaxHandler.php", redirected: false, status: 404, ok: false, …}
GET response from the console
login.js:16 Response {type: "basic", url: "http://localhost:3000/ajaxHandler.php", redirected: false, status: 200, ok: true, …}
| {'url': 'https://api.github.com/repos/facebook/react/issues/18122/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18122/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18121 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18121/labels{/name} | https://api.github.com/repos/facebook/react/issues/18121/comments | https://api.github.com/repos/facebook/react/issues/18121/events | https://github.com/facebook/react/issues/18121 | 570,482,334 | MDU6SXNzdWU1NzA0ODIzMzQ= | 18,121 | Bug: Image not loading in the production build | {'login': 'naveenneog', 'id': 40742835, 'node_id': 'MDQ6VXNlcjQwNzQyODM1', 'avatar_url': 'https://avatars.githubusercontent.com/u/40742835?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/naveenneog', 'html_url': 'https://github.com/naveenneog', 'followers_url': 'https://api.github.com/users/naveenneog/followers', 'following_url': 'https://api.github.com/users/naveenneog/following{/other_user}', 'gists_url': 'https://api.github.com/users/naveenneog/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/naveenneog/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/naveenneog/subscriptions', 'organizations_url': 'https://api.github.com/users/naveenneog/orgs', 'repos_url': 'https://api.github.com/users/naveenneog/repos', 'events_url': 'https://api.github.com/users/naveenneog/events{/privacy}', 'received_events_url': 'https://api.github.com/users/naveenneog/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"Can you move this issue to the `create-react-app` rep? -> https://github.com/facebook/create-react-app Thanks!",
"Opening this issue in https://github.com/facebook/create-react-app Thanks! and closing this"
] | 2020-02-25 10:53:02 | 2020-02-25 12:31:38 | 2020-02-25 12:31:38 | NONE | null | null | null | I am using the images by doing the `import IMG from '../path/a.png' way.`
After the` npm run build ` the static/media contains only some images with hashed name others could be embedded in the logo.5d5d9eef.svg . In the production server where this is deployed. I don't see the images rendered which are hashed with data:image/png;base64,iV......w0K format . Where as other images are coming . If I click and open the uri in the browser It does opens the image but in my app it is not rendering.
Any inputs regarding this would be helpful
React version:16.12
## Steps To Reproduce
1.Create-React-App project
2.Create some image renders with import IMG from '../path/a.png format
3.npm run build
4.Deploy in the server
5.It has generated a data:image/png;base64<long image data>
6.This is rendered as complex instead of the image, which works fine if the url is opened in another tab.
7.
<img width="166" alt="image" src="https://user-images.githubusercontent.com/40742835/75247487-04aa5880-57f8-11ea-92dd-88a086bfee31.png">
8.Why some images are converted to base64 image and others as regular static content.
9.Is there any workaround to avoid and make all the images as static resources.
Any help in this regard is hugely appreciated.
Thanks
<!--
Your bug will get fixed much faster if we can run your code and it doesn't
have dependencies other than React. Issues without reproduction steps or
code examples may be immediately closed as not actionable.
-->
Link to code example:
<!--
Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
repository on GitHub, or provide a minimal code example that reproduces the
problem. You may provide a screenshot of the application if you think it is
relevant to your bug report. Here are some tips for providing a minimal
example: https://stackoverflow.com/help/mcve.
-->
## The current behavior
## The expected behavior
| {'url': 'https://api.github.com/repos/facebook/react/issues/18121/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18121/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18120 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18120/labels{/name} | https://api.github.com/repos/facebook/react/issues/18120/comments | https://api.github.com/repos/facebook/react/issues/18120/events | https://github.com/facebook/react/issues/18120 | 570,481,190 | MDU6SXNzdWU1NzA0ODExOTA= | 18,120 | Bug: Some images are generated with format data:image/png;base64,iV......w0K prefixes and not loading in the production build | {'login': 'naveenneog', 'id': 40742835, 'node_id': 'MDQ6VXNlcjQwNzQyODM1', 'avatar_url': 'https://avatars.githubusercontent.com/u/40742835?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/naveenneog', 'html_url': 'https://github.com/naveenneog', 'followers_url': 'https://api.github.com/users/naveenneog/followers', 'following_url': 'https://api.github.com/users/naveenneog/following{/other_user}', 'gists_url': 'https://api.github.com/users/naveenneog/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/naveenneog/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/naveenneog/subscriptions', 'organizations_url': 'https://api.github.com/users/naveenneog/orgs', 'repos_url': 'https://api.github.com/users/naveenneog/repos', 'events_url': 'https://api.github.com/users/naveenneog/events{/privacy}', 'received_events_url': 'https://api.github.com/users/naveenneog/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [] | 2020-02-25 10:51:06 | 2020-02-25 10:53:45 | 2020-02-25 10:53:45 | NONE | null | null | null | <!--
My React version in Package.json `"version": "0.1.0",`
I am using the images by doing the `import IMG from '../path/a.png' way.`
After the` npm run build ` the static/media contains only some images with hashed name others could be embedded in the logo.5d5d9eef.svg . In the production server where this is deployed. I don't see the images rendered which are hashed with data:image/png;base64,iV......w0K format . Where as other images are coming . If I click and open the uri in the browser It does opens the image but in my app it is not rendering.
Any inputs regarding this would be helpful
-->
React version:16.12
## Steps To Reproduce
1.Create-React-App project
2.Create some image renders with import IMG from '../path/a.png format
3.npm run build
4.Deploy in the server
5.I will just put the image url that got generated I am not sure if this is fine
`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABKCAYAAAAL8lK4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIFdpbmRvd3MiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QTcyNDIxNjIwOTE0MTFFMzlFMzRCQURENzBEODk2OEEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QTcyNDIxNjMwOTE0MTFFMzlFMzRCQURENzBEODk2OEEiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBNzI0MjE2MDA5MTQxMUUzOUUzNEJBREQ3MEQ4OTY4QSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBNzI0MjE2MTA5MTQxMUUzOUUzNEJBREQ3MEQ4OTY4QSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PrnSsKQAACKKSURBVHja5HxpkF3XcV7f7e37zJt9BtsAJBaCJEBAYiiSIuVApCjJ2mVJZTmJnYrsiot/XK6KK0lVygnj+EeqkipXUnaUpJKoZEWyHCuk6EiUaAokRVIkSGLfZjCD2Ze373fN133vG7wZAASBovzHTzq8b7lz7+k+3V9/3acvFM/z6O/yS6W/4y89fuBXbnWOgrHDdpxxWEtMVVRXUZUxfBnD92w+IxgJsSPPy+O/cQwXow8jg2EH71PB9xlcR8GLVFUlx3FcfJ7G9yfx3QVVVXBUT+Dzxb8VBbyPc1IQ7rWhfF9SVRSt1mh6rXYnZNsO6bqOoZEIEwjEL01TKRQK+TcwDIpGInJeKBSmbDZDyWSKSuUynTp1mh555GF1fb0wOT8/P1mr1andbmO0SrhmBdf7BcareM8KmcdYxmj+rSqAV8tx3fyTj3yYDh+8m5bXilSs1KhQquBYp0qtQdVGgzRVg7B6oAgNSlAwdAxNlMAKiUYjFIsnqK+vnyJLy3T27Fk6dOgQGfi92WzS8vIKra+v88iWSsVssVjaXqlUvmhZFiu5gOmcxjiL92wt5/D+LYz6zebeOP0C3crCb6kAXl0M+/hbp/S1apMGclkaGeyjbWMjpGPFLduijmnR0mqBrswvUrXWpHK1StFYgkyrI4IrUAiDrevycGV4Hg8iFo4/8zGTyVAikaCxsVFRSL1epwaUWy5D2cVCX6lUfrTVaj5qWTa7ThPXXMfcZjBewVRfDdxmHaP4QbqAvNoQslCu0ZlzFykSi2KCDdoxMU6xsE7jw0MUi4To0SMHKQKBV9YL1DIdarQtqtQbVGu2yXJcUQBDCruKgsGCi4WIK+kQqoNhk2ma5PBv+C4Wi8tvyVSKhkdMuW8FCoGCYs1ma6LVak2YlvmIA5fEpRljTmG8q2vaZRz/8ANTgCqWADTr76P1tVWKRWN0aWoK/pym81OzFIZ/JxIxHHVYSYa2jY7Q3slRMjstQUrLcqgEd1mAC104v0aLy6tsXvR//uoHVK3WxH3yfX1y/QTcxDA0MqAcaIkIvxEsRvV0iqSSlIpHRXnxcEgwg98nY2HqdEw1Gg7dG8Z48TWGjQ9QAV13aMIkeUVqtSqlU2m4gE3JRBICmnTpylWqVKqyevFYDKY8Rg8ePQxlDFN+EErZEaEjkMnGClcaLSoAS9aKZXGlGsy93WqSBwvQrTqN5IcoBXdg8EynElBsCDpwN9wFLiDWxStv4jMDqGn71lMsVen98pvbUgBfMxyOwOc7lEqnRRmJZFLMlpVTw0pms1lYRRKmG8Mq6nTi3dM0M79Eo6OjNJjvR0QIw00MikcM2jk+SvsnJwQ/LEy8BqUUKxVqw2UuXp6mtUJJBG11TAhpUwpuEML9w+GwBOdmq002vm/hWMNcOp2OWEQNinFd54NXALsAgx4DWBVAp2mGaD4ajforBaXwK4Kwx4DGIY9BjYVYW12lCxcuBNRBEUEO7N5Oh/btop++cZoKxRIEaYkl8NEHwYYIxH/Pqy8TYHeExfA9Y8AixhBWPuMLrzpjSwSuwcr4pVhAd/RBuMcePEwh3aBFgN70zBxNYdIxuANHBV4xnhTH/oGBPMaAuMn8/AKtINwtLi3iuExziRBdvnwZbuOJaylQkIqhg0skomHgAJQFS8rA9xmHOJQm4zGcp1AcWMCulojHaWJkiOZxvb/80fEPnAj1qgAC6dRqePTI0Xspi0mtQvjtI4N0/92T9NEPHwJPKFG11SEbSlL0kOABK6SJVWWexC7Ck+4H2GUTERoZyFB/Xw6KWaRapUxf/ewnIMyIRABWsg4uwedrUDRbTjKZINdTxEIMKNcCBnC4jAM4L188Td97/kVSflkKYFOrALjy/TmaQOj7qxeO09J6iXLZtPh1DW5x167ttH/XDpzTRzqAS4MSLEy446pUbbbEhbogxhPlVe/P5XzyRA49+MAD1LIURIkVKs6tETNOVjK7WANCV2s1YEme2jBxNv8+KJR5x56dO0gPsIhuI8G7TRfwJB6LT+J9oVQWUwVBEdZ35eoCnb48S9HQz6kPhOngvj103/676a7du2hkaAD+3KFfnJ2mFYBc74uRna9pGCrNzM7QC6+dpJ3bt0N4W9ynD+ExmYgLhbahQAPWoAvLVIVFaqpCCeDBlcunfym5QI8FIFxVKzTUnxV3SEMZBaB2HD7oQgBWRhTvk4mETOzEmYv02ttnKA7AumvPTnrq0Qdp12g/CFVVVp5XcLMiPPm7++45SPcdPCjRRRYToNtNnrp8RMhUYJW+zXs+UP4yFcDonwa6s/mRuENVVqIN/2ZhXEZhTITDVH9//0biwya/CID6wQsv0UP37aU3f/EOOZ5Gh/bvJnUoJ8rwEymfGTp2g+auzoJ9tsXv1wsFEbTMIRJWpELRzXZT7s1xv4Nx4K7dNNqXkPNup8ah3/OpP3jPE+7Lrg7PLS6ro9v3kqWnqFh3qNy06ftTRNse+S3KRoDMaotapXkkRS9Qq92SCbBJs2mzcMPDAMn776ME6HIuAq46vURvvnOKzqqI7WFVGCWz5DywhNnfqbNnaHl1hbIIq4YREp9nIjQA7ImDgXL4izNFxrlMllTBggxdnbkg9/xAQPDrHx3fs1ox//XMavzJfYf2qvdsS9Hu4QSN56PUl/BT3ULdpLm1Fl1aqtOp2Tx9KLGL9NYSXbnw1ibcQMrv83vQ22QyQ/v276NkJke5RBgTj8uk5xeWhWIboU/T7/3O78j5KoAP9Fasg1eZBWbWZ8M12BIqIF4NHEuIHtlMmpRO7YMBwc8/OPIH785Un949HB/43acm6V4Iz6s+C2HfuFShpZJPMkZyYdrWH6WnDg/RVx8eo3dnq/TiqTxpyWHSmnNUWl8Qk+7WCbqAx8Lxi/2dQXXP5CQiSR9ZnaZM/r/9+XfEbUwAHrM8/psGaDKTHA5/Nj4bQQLF0YOF3gegHcvBGoBTrufcuQI++cDQf5leaXztKw+PRR66OydC/+cfzdKVZaTCyQjlsWrZoNhRLFp0fqZOa7UOTY7F6In7BunpT+6iV85n6VsvhSirhGhtZVrISx5mLKlxwObYMrpD3AX4wjEe39BPjh8Xk2cBmU5rcjTEAkJgefFAcFZuF0gZdxRVCZjmHboAC2/a7q///md2h/qSYQgxR+dm6/TAtgztvycpKN3s2IL4KWRfuh6mPQNxpLoerVTa9CfPTtOh3Wn69JFh2pbfS9/8cURW+4c/fJ4GBgfovgN7qf/BQxsTFyRXrnms6/hoz9GFBeffe89lX+cVhqRiDd3hm3yg2DuNAmz20yvNr/3+ZyZDyahOz3z3HI0mY/Sxu/vJhICVhiX+mE9roKgaza7WMTFWgir3T0U0OrZvgE7NV+iP/uIc/d5n7qLf/Ps76I9rJn3ui310+cJJmp+bp1Nxg3786gkyEbGOHNwLTElLPNdFSIXqjToUaoslhACAzA14tSPh8IZF8HtWCucDGhQQw3E70u92rXBnYZAB7+Rs9elf+8hYpD8Zon/xrTO0PQvAy8VovW5L3GUgc+CXB/cMUn8mTs4pkJ4ryAYT0Q3Q8eB7kwMJurDo0TNQwr/80n768sMT9L9f9ujBBx+iZNSgoaRB06tVeuf0WeQAU4gKQP0zZ2VV+9IpiiGR+sTjj4lQXGNIIbNkYfnIfh9mFwA1Zj6QRojlhZdyHH574SfPgQvcgQsw2k8OxQfY57/5Y4Qky6PBZJSKWPWuTYmv2gq9c7FA2WSVriw1JW1pdZxNqNs2HZroi9HU+Sp9/+dz9NVHt9Gbl0vIBRoUtU2gfJx2gSonUhnKxAwa7ktKFjm3sEjzi4uyql/7/BeEa0jub/tJVQtZYb3ZABi2aXHFL6Zw6syvEo7bkG5LCIQV3Y4S9H/w2MToaxeLT/zuU7tg1g34/Sx94fB2oL55HaFw4ApvXSggDHUoHIlTFCmt7drXeZ4JLr9nIEV/9qPL9NEDA/TYPXn6kx9WqG9ClWtyTU/CHACVBR7H5LkKVEE4a0LQP/1f36ISGCef20KY4/yhS327WKBpm0GQOUP0DvZ49ErT+u18KpzkUPdvv3saqxLGjRVqdDYTCilqehYduquPhhH+3rpYouWyJRXf6+OuJ2AVDxv0vVdn6OlP7aU+RBDTvT638IulfqWHTZz5/zmkxyHm+BCOfZ7L6r1gqN1AARwdQElvGwXVUt36OJOcMsz92TcXsKoGtTDTjuVSu2dwkbPdsWhyNEUHJgcpGdOo3jJh8pvP646O7SIpCtH3X51DemwR36PQ9G6RbPvcXvwfAvGQ8BfE/JuOIETe0b7AWtXcwwxvaqkildsWJl6HXyuKt0mZ7IcKBgvHU0W4pDaGa13vAgxQNrM/NmEo7ioiBt/j5XOM0sYtU25Ofbeu8o0sgM/jCMEAqqo6ObdFggMFrNc6Caa3P317TrTZwIoWmx1KhWCO3jWbZWDRyJaEiAW2RRkgMMr1CtAZoMAX2sAM9tvpxSod3TcErsAMMnrLfTgjMP9bKcD/rAkgsgU4d2IBMH2Vuf3sSk3yahZvrtqh7Ulfm+6GAuCjqkc+wCqwFoKbIDL4+eqmuiHOonlcg7NDvubsWp2exD3YzW7lAiKM5PjqTRXQXfkuG+S/4byB7oAK6b13V7C6Gi5Wh3RLzRYNRHXq0ngXLuEA8Q1dFQWEQVAcF2HtBvvL8zWHmnAVIwA66snTu3WAXgbYW3TkWh8D4GYWqL03COJSunqHGJCJGy6yOnXbQExKybx6UuI2HVnBVOSahBqiw2KxRZlknRaKbSo0bErr19+40OhIIVMKqGB14/m4ZI64F126eJFmZq5CoUxjkxsCdRXiY4DuF0Dk+4DuSuFD8YFSVQOlcJ7gh0beWFHuRAH9yXAdKW1qz2iabN6fQ37O1TlP9U29YQZNBFhFrtb++UtXJFOLIC9H7KGFkr0FxDxJXvhInOQghk+OpCRtHkiFpLZfKBTo9PlLVNg1Tkn9flpbX/e3wiAwQy8rjsMaU2FmgxwNYpGwJEis2O5IIFoYuibHVCJO51vloChzGwrIp0KXkM8ffvL+fjIAaCGmm/DbeEhBGFPF5GN4nwNFzsKPI+x/WIl+5PGVtgdX0CSb46jAE49FdHrj4gr95ExJSlpR3aUJkKJnT6xSOuwI8XniiY9TIpOjM2//gtLHHoP/6nRlekY2WljQz+E7Lq+xK0Q5FOKeXAf0cwb9uujEuLRWLBJvhzEtfr+bIqKAbML461Oz1cOcz3/i0Cg9+26BUuksFKFQQoc2FcYFj4x1C8K2KAqnj4U1yhcbyL/jNJRK0q6RLMw7LBZzaalI3365LpOq1+r0lYcmKBUPEe5Bml3Bajtkh9Mbpr5j5w568sk4rayu0VUkS5cXV+kQ2CObNyM7R13PUalpWpIys5KZZDlSI2hRqVyhM+fP08uvv0Ezs7NCnDqd21BAOmb8p3ML9affna0mvvL4XUhcnqdIIkMggtSw3GtI6fqIr/uuCAUhCrgV4vUAo6Ujk1naMRij599ZoallE7+rZLXr9IVH90ihZKXUoNbs27TvsQ9T2fYZIC8lMz9WBu8g7dk9Cfxo0g/+5hWhylqACwaUwZsq7HqcG/CRd37W1tZpHSvfCnaPWHj+7bYw4L+/eHXhifsHn3/x1NoXuZjxjSehhHfMjRDYW2LoBjyeO0ih/F6Hsis4ffmdAlatiJweaaywMo+e/tV9NJJP0XefnaLhJCLInt1SLC0uFq+jxN3SOLsXU2IOu5wQ8Z4hH00eQQHUDIYDZTD4hd2QRCWuNt9uOiD4NpAO/fNLS43VV84X6esfv4cmowVqFhbJbdUAYkiK4AKsV4R9aiMSwPWpJe+hIPZLrDZnDlKWtjtUWJunyUSFvvT4AeJrTi1VyfDqsl/IFd1uOGPBu1HgRuGx23aj9/QQGD2Df+Mi6kOHD9JHjn6Ijh7cd1v1wA0F/I+/mbs4ORz/D995ZaHN+f+/+8bjdP94iKxGiQwXCQayP121Kaz7ps/mzSMMf9BVF26A3xSLVKtFreo6PTSZoGf+yWO0VrPoOy/PUcJbp6tXZ2hhYYHW4Ounz5yRjVJevZMnT9Jzzz1HZ8+eo3K5LErh8lZvHfFmLxsWMzbUT7n8KJWcBG2b2I6IEAkaMW6TCP3Fzxef+eQDQzv/60+u/vo/+thE6N//02P0P59/h775o/MUiiYpwkUIPQRrUDfKT4of6JEPmNRq1qGnOn3jEwfoy8fuFeG/+cIMOdWrdPzEcZiyJRsq4/0Jmp29KvF9/969sqq8C3z+4styVd47HB4ekhqibLhw+N1SOuvNGzhdNgDU/XGNOpgDb6Uryi3IdqBcnsOmmuCzby7/FpRAf/yXl7725Y+MRf7xZ47QsaO76NsvnKLn37hKJjMExGa/Egu/BWO04SIRzaFf/dAO+vLHHqfxoayYPa98f7RDMcOkDx09Knt8uVRchNu5YzstrhYpnvR3kLgYyv0DDSiCt9mWl5dlPvF4DOcPUy6X62mjuYbwTJdXChVEgNcRMjWanV+S6KDcVAM+opkLZ8htVn0GufUUVsLnHxyZ/vbx+affvFwa4GLGP/v6o/Tbn23TlYUCXZxbp6mFkmh510iO9mzrpx04phMRQfvvA/Cml+s0nrGpXimIX3cbF+rARgYvbmzgHgCzEycH2aT83mpJosUVZK4N8u/r6wW4zaJcg8Ezk0nLLnAkEr7WF4C/4XaafDZD5WqNKrX6zf0di2cV5skuLrz3vgC7w9c/Ov49LpX9x+cuPzmQiiS6GyOPHu2nz23ZGHnu7XWJ88ulOuWMJuLnCq22eMUMMWFbQpcJpumTJmac3ZDmgLTIe/7dtqXwKgjPu8fBHiC/X1paosXFRcEH3hniLbcwFDHUn6MHDuyh1WKFjtxzN62ulzb2HXozNDb3ztwpcrYUTm+6M8TAiMOX/t5oY/fZE1Pna+X96osnmdO7VGn59JdreoggoLhYgQTAy6oA3M7TlStXRKBIJAbzzVI6nRJT58Iql765JMZC804vu4ZlconMChRl9Qzb7/pQlI3KD5/De5I8WLlRbTe4QJkK1QbtHOoT69kUCER4WOHcSbLLS9eD4Ot/9LEbe0soRtG7HqZTnrsISutOjL6pDg7koeEiffbTT9FjR/bT6+euCjkKK2FSEIu5Y2P//n20E+yOV6u7apcuXZQERnoHtg+JcpgmszLYZ7sWwcroVUJ3G/7aoKAeca2cdu7SFcom45IL/Pytk1SUrfprCRrft3P11A2Ff08L8MymgEV47ADvWGwiLRLHNb8r1K8cKpu2vdjfuUlqZGRUTJX7iTjhKRZKtLC4QFNTU1SutyifigmZ6UAhHSE6wAJ2AbxnRbC58+ZoKGRI3xGDIEcGdosQ7wQpfktuE/fvtBwKpfro0AN5/H2bznCpHa/3Ev6W2+N2cZ7cRpmMnUdE+wJomOTPjh+nveP9VEfyEopEJXOTjUvT3LTdZUtDlSNmyQrJJGNyZHNnyxhIx6g5OSGgNjQ8Qom4Xy3i/gL+m2jEz/b4d1YAC2vw1ni9KnOpFtdlrzCfS1MOAHn2zCmamZ6myPBuKZGJDO8h/M0UoGy2hIZGQRmMXxMIV6lEDOGqSM+CwBhGhHbt2kkT2yYkhsuKYFLdZqpu9xabLlsIX0YHamu6D4ic4R3Yt48KizMgXG1p9jTAs5ljeBYSG7iKjRVfKpeoVi4gdKap1aiTBwXYUGQGoXXvxIdpDZiwa2IUFrYsrTSujx1KQPbcjfa0LSUj/WbF2eA3rkZEen/kiTO6h8NR+tKnjtFLr79Lly5fprPnzguz60PM5ljf7Rb3GZ0SpK2S7W8opatv7iVqI2Ra7YYoyghFpCuEm6Bssy0mfeDew/QPf/MZevFnL9NfP/cD6T8mzaJ0Li+FWt49TgKUO80Gtd1I9/paoADvZvUy/Sb0WAvKtzwSmyu+KtWaLXrt5Hl6+PAB+o3PHqNFhJ6FlaL0CC8ur9HJd0/K/h6XtyORqKS23ZYW8mgjE+QFsgXsPH/jUwiWBreK+EkR+38mB3xoUyTOO8cKFWD2nTZ3qHjUhiWcX1+mNFLyvmiITp45RzVkk56akpyj59kFvrUTjOssQOkxfTUQOhSUb3n1c1vdgs12bmmN/t/LJ2h8OE/jIwP06OH91ASAVZttWivV6ApMcXV1Xfj98sqyEJvQ+IhYQFcJG0VQCB9PpMji7XPyewtbjSqArS4Um1f1ArDn3/zhv6Li+ip1GjV/IyWeIUs16GevvSlWIpkqfL/D/cM+Y+QHNTiPazEeBu/t3lpv1wK0QBlGIDQLnww02Hcj8OBsrA5LuDCzQLPL65QGnZ0YHqAdY4NIgXN0eO8uqrdNml4AKQL6n780BRNvge5yC3yNbEySkV6uBZTvQGBurOYSmhWOUBKmzcrR4A4cHj3FB9n0aIpSEJI7RLgZ04NiDGAB4qbkBR18x6wyoMxDgfC14NjuUYRYhN5j8qFA+K7g6eAxl5yfdyjdZwdk4ozk/N60TDGQKYSuN98hCYFpgCR3b+8YG6adGNv7kEh1BkVpub4MDY+M0eDoBI3ls37xE/878JFj8oxBKufruw1lcYnMb5dFlglla522CM4rbCsgUJ4jPYimDX4PHODNGA6rXf7AmX7wQEV3cbXAmpVACfJDd/VDgeCpQPhMcMzCN5VCqURlIK3f2qL7RczgQYgwx2hNk1DFIQsZE5A7TMvVDmnlNg3kInTg4D2y9b2I5OVXjh2TvxnMJGg4l6CT04s0c3WBTvz0JapWyvJECSdBzP2ZQUr+AGTvBEURHj6ZssTUvZ4oteU1GCyqvgHqm8He03v8PhyYfiIQnpsBs9z7oLiOiTQzzAUP3qjM5/ul1TWTTkulVg0ejdGk2KFLNNB6dnPLDZNqM8sbGR0XO7vFEO7z5QRnx/ZtNIDrzszMSLr89ttvi6Xx1jlng0ypt26Q0K3rv31bhHZ7wJCH2zX9UI/wXQvwBxbYNpuerngVrshatqPV602DLYILkq4Ioki1ttsD5AWRdKO5sXeTg5Wi+HX+ZDRMmUSUVpBEdV2KuQQ/ZzAxMS4dohwBlpaWoZRZWllZkfygdw+B8wtbegj8kppPwGxpvrZWp14PBLWDwWZv9mCA3Y0CWo87GD0+w7FL9cx2vV1eq+uN6lXE7KhjxPpNLZRt1aL9yysrCRY8j3SVc4V+TJr7gfwSl/q+Kju9NFu6w2Di7GacArMF7N7dkb2E1dVVKYQyi+RrMy32la5u4NOWl7YlpGs9Q7BA7/GHriM5W7R2bfcTd3AsThLMK/ywEmYZVbVQ0g7FBhaa9eGF+Xmw15jGkx4dGZaHn/r6cmLiXWL0fl9MlrorKo/EJJOyp8Bt9/yMAjdTFIslyQpZcUawnbalqcPqkcEJZOwFDE/rAQe9Z+WNDYvg0o8e6Vd0voHmiYUr0oiierzv5VgNxWytqlZjVnXNNcdsNxm5F1dXI5cuT6tMTUslf5OE8wBeNSlmYLLJWESqRKvlRtAK032izLvufa8yePV9wPVBl8NkE1GCKfC1CKCwCzwfRIHuqAXPHba6rqAHmrGC+NiNmV13kHwCTos/UgyuAYOi8hNMquxPBPTJ85fMUTqNNVVpLCMRiSASIJOJ9q8tNMeW5ufSp8+cCbFlDA0O0t69d4ufQ/qguqsFLTi+/3IoZcTnwc8C8IozkeL3/NyB/3BlO1BIkGcEDdUO00p+2FFVWS4OW9xIVA6OXQV0ccBWeoQNByGjC4QZGYqSpFjuATUUDWm6EVY8Bk7XQLKiMf6REsCdEnRuM75xHZ03lJWAQGihqKtHRxw1lPf0EOA8lOB63wEoYtvYEC0Xqli9BtLmuqTELDBjAT8i52tYhIQ5uLbnOh3+gLcdzMHxHKsNeU1834BVWp5twyecJghV3S3M/F/uoQqEr/cQok4w7C79VXrAItrDBFOigOTgETWciMDPoADHwM1CGoA/EZEuQbVlOipHB1Y8Wwf1kKaulWBy8EMQCj0U9/Rw1tHCIx1HGXZJNcD7XRWJN6IJ/MBu4rPNLeP4zkQEbjDpgCNASM+G7CaGg//LZ/AA3qLw6a3ncSjhMlJbLLu6dLxH+EbABM1eXNB7Nnx6Y2UXPDpiMkZkWQnFwio7nGMbqmeH+5NhXVM8zexYRjaqcB+E1jFttWPbmu14iuW43db+QA8K+epwq5rTXnKb5fNau6UNI2JwTxLLyE04WD0/V3L5Cw/a9OQYxFaPAusiVcdQHIU3LEiiMYSHcB4PF0KywjeeNe76vLklF1D0HuHdrTtgviIUxKTImhJJhNVoLIT0TY8g5OdyEWNhrao3LVc3XKwrwnwYOsnEgBWeq9q2q5m2q0AhKmKyGtxEDXZ7FJV7i1RlgxvwGb6gqhxgEmJOniddf67nbwI7/lC4qdYBklpwN1gFC6UGCoAVeK4VlLHKW7l/j5zujdJht4ctBcCotCmcXFOTg4aRTOlIPvRIyDP6BuPGYlPTQ4apwxUNC0JbrmM0oJCwrqjRiKLFwX8ysBKspdpmZVhwFcdVpPEByK2aHSUUiZGJhVdcv+jHji7kSgRWGNGC9iw+A4LDxFl4+JmNBMkCFEF4xWJlyOqy8MKPWVfi/70h/j3rAd4N3jui1VimrGTH1FDfgOp2Glo8ougjOzP65bqhK82WRq6lK66No807FzrmrtRdh9sdtJDmadz3nE6oalhT1FLLVpq2J0toA/C4wmMZYHMCbF7X/Jnds0vgTBUOJcLzloesvKtorAQXhmchRjvwA0QqnYXngVDSgU+ZfDFTee9tols8MpMeQTpxN84KdxQDjh7LKKoRUSMJXcmPDquRq03NCTU11bUAB1gbz9HAC4Q9QhkYjgqqoLF1VGDRAwlDGctpylINbgHvZpqbyQ+R1XDIlH9HQQiQOL9wAEXDaRqzWn5ymFffdfh30iAlzAZHvHfYyDyxWqSHtgm9aZ7cXzoogedm6w4UEEY03PmQXJOsluVf0C/jQAkUiyfVUKqfrFAH0I6p+EivQmJF0SQgs0KQO3d8ReAPGTxG+8JklgGWKj/sbNHQjj1klR3J4znDdEV2bsiCLnAFD2DHunH4iDe2P8QhPB8JsNrctwcPsGW/WtRF3Ra/XQ8TTb8CZ27cpgK2H4VOTf9CDDJcZdXBu5HqGrGUks4PeaFsHfI5CsKjJ728iAs4wu514QZQnOpZHRzbCjcz9ifCysRgSKmstKlicXW3rozvPuA1C7ZUk2wLmAbRHNI8Tnc9NQTWYchTQMj7AT8mN3N6XDYn/O4iZ7DxHXFBBHgiRsG9y9KgFGSBoRjRnscQDJeIFk5CJut9KGDkAJhA1lfANU69aVvW962NwQ/tkrRq85EpMzstTN9j18C3oMjweRfzdBWHy1e2pXAvD5iz55iOAkHgLTZAHXRC0QX7gGd4r7mifEX1mI7LnDZ2qBUvaB/bWtC+pgAOBnx+/05A4hyo0OotFJAcIBrY0ys8BVHhRlVV5dr3XvC0kqAY3ECTmp0etLTyfPrTYdq9M0OVZUcpuRGPnzbfe+QRai2ZVG1AQfBf0/R3hkwZvF/oeJICwzr80L4B5t6WgsDWsrey6aFnG1YzepBo6mUsZ/smCmBOPvEAxLW3quX2Gm+C+ytYOYVb5vgfWsF7IxyTNnsjghAYihCvaDjGnw1gOe5tGYgfJjnc+yt5OK7CIV25kybYLdUSefY/6eNaaZ5o9cINFMDCG+EbKeCOZhCUfzeG/++G+GPjO9fd9H3vb+R5d/AU0Hvl2LYP7mOwhAiOcyfo/wswAG8n/MMffg4gAAAAAElFTkSuQmCC`
That is huge url generated for a simple image file.
Any help in this regard is hugely appreciated.
Thanks
<!--
Your bug will get fixed much faster if we can run your code and it doesn't
have dependencies other than React. Issues without reproduction steps or
code examples may be immediately closed as not actionable.
-->
Link to code example:
<!--
Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
repository on GitHub, or provide a minimal code example that reproduces the
problem. You may provide a screenshot of the application if you think it is
relevant to your bug report. Here are some tips for providing a minimal
example: https://stackoverflow.com/help/mcve.
-->
## The current behavior
## The expected behavior
| {'url': 'https://api.github.com/repos/facebook/react/issues/18120/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18120/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18119 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18119/labels{/name} | https://api.github.com/repos/facebook/react/issues/18119/comments | https://api.github.com/repos/facebook/react/issues/18119/events | https://github.com/facebook/react/pull/18119 | 570,324,436 | MDExOlB1bGxSZXF1ZXN0Mzc5Mzc2Mjc0 | 18,119 | Fixed a spelling mistake in a comment. | {'login': 'steveharrison', 'id': 1661692, 'node_id': 'MDQ6VXNlcjE2NjE2OTI=', 'avatar_url': 'https://avatars.githubusercontent.com/u/1661692?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/steveharrison', 'html_url': 'https://github.com/steveharrison', 'followers_url': 'https://api.github.com/users/steveharrison/followers', 'following_url': 'https://api.github.com/users/steveharrison/following{/other_user}', 'gists_url': 'https://api.github.com/users/steveharrison/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/steveharrison/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/steveharrison/subscriptions', 'organizations_url': 'https://api.github.com/users/steveharrison/orgs', 'repos_url': 'https://api.github.com/users/steveharrison/repos', 'events_url': 'https://api.github.com/users/steveharrison/events{/privacy}', 'received_events_url': 'https://api.github.com/users/steveharrison/received_events', 'type': 'User', 'site_admin': False} | [{'id': 196858374, 'node_id': 'MDU6TGFiZWwxOTY4NTgzNzQ=', 'url': 'https://api.github.com/repos/facebook/react/labels/CLA%20Signed', 'name': 'CLA Signed', 'color': 'e7e7e7', 'default': False, 'description': None}] | closed | false | null | [] | null | [
"Hi @steveharrison! \n\nThank you for your pull request and welcome to our community.We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.\n\nIn order for us to review and merge your code, please sign at <https://code.facebook.com/cla>. **If you are contributing on behalf of someone else (eg your employer)**, the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.\n\nIf you have received this in error or have any questions, please contact us at [cla@fb.com](mailto:cla@fb.com?subject=CLA%20for%20facebook%2Freact%20%2318119). Thanks!",
"This pull request is automatically built and testable in [CodeSandbox](https://codesandbox.io).\n\n To see build info of the built libraries, click [here](https://ci.codesandbox.io/status/facebook/react/pr/18119/builds/12009) or the icon next to each commit SHA.\n\nLatest deployment of this branch, based on commit f3cc14385a7da0bf9eaf4a148b81d6899b8edc76:\n\n|Sandbox| Source |\n|--|--|\n|[vibrant-johnson-c2jyf](https://codesandbox.io/s/vibrant-johnson-c2jyf)| Configuration |\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-experimental;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (experimental)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against f3cc14385a7da0bf9eaf4a148b81d6899b8edc76\n</p>\n",
"\n<!--\n 0 failure: \n 0 warning: \n \n 2 markdown notices\n DangerID: danger-id-stable;\n-->\n\n\n\nNo significant bundle size changes to report.\n\n## Size changes (stable)\n<p align=\"right\">\n Generated by :no_entry_sign: <a href=\"https://danger.systems/js\">dangerJS</a> against f3cc14385a7da0bf9eaf4a148b81d6899b8edc76\n</p>\n",
"Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!",
"Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!",
"Good luck on future contributions! ;)"
] | 2020-02-25 05:36:15 | 2020-02-26 05:48:07 | 2020-02-26 05:01:09 | CONTRIBUTOR | null | false | {'url': 'https://api.github.com/repos/facebook/react/pulls/18119', 'html_url': 'https://github.com/facebook/react/pull/18119', 'diff_url': 'https://github.com/facebook/react/pull/18119.diff', 'patch_url': 'https://github.com/facebook/react/pull/18119.patch', 'merged_at': datetime.datetime(2020, 2, 26, 5, 1, 9)} | I'm beginning my journey to becoming a major React contributor! 😛 | {'url': 'https://api.github.com/repos/facebook/react/issues/18119/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18119/timeline | null | null | true |
https://api.github.com/repos/facebook/react/issues/18118 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18118/labels{/name} | https://api.github.com/repos/facebook/react/issues/18118/comments | https://api.github.com/repos/facebook/react/issues/18118/events | https://github.com/facebook/react/issues/18118 | 570,179,299 | MDU6SXNzdWU1NzAxNzkyOTk= | 18,118 | Hooks - should use a special character in front of them. i.e. @myHook | {'login': 'zanecurrie', 'id': 37783074, 'node_id': 'MDQ6VXNlcjM3NzgzMDc0', 'avatar_url': 'https://avatars.githubusercontent.com/u/37783074?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/zanecurrie', 'html_url': 'https://github.com/zanecurrie', 'followers_url': 'https://api.github.com/users/zanecurrie/followers', 'following_url': 'https://api.github.com/users/zanecurrie/following{/other_user}', 'gists_url': 'https://api.github.com/users/zanecurrie/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/zanecurrie/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/zanecurrie/subscriptions', 'organizations_url': 'https://api.github.com/users/zanecurrie/orgs', 'repos_url': 'https://api.github.com/users/zanecurrie/repos', 'events_url': 'https://api.github.com/users/zanecurrie/events{/privacy}', 'received_events_url': 'https://api.github.com/users/zanecurrie/received_events', 'type': 'User', 'site_admin': False} | [] | closed | false | null | [] | null | [
"Thank you for sharing the suggestion!\r\n\r\nThe naming convention for hooks is pretty established at this point though. Changing it would add a lot of churn to the entire ecosystem.\r\n\r\n😄 Thanks again and I'm going to close this for now."
] | 2020-02-24 22:12:10 | 2020-02-25 02:30:41 | 2020-02-25 02:30:41 | NONE | null | null | null | 👉 Please follow one of these issue templates:
- https://github.com/facebook/react/issues/new/choose
Note: to keep the backlog clean and actionable, issues may be immediately closed if they do not follow one of the above issue templates.
With regards to hooks naming conventions...
They could use a special character in front of them. i.e. @myHook
https://reactjs.org/docs/hooks-faq.html#what-exactly-do-the-lint-rules-enforce
What exactly do the lint rules enforce?
We provide an ESLint plugin that enforces rules of Hooks to avoid bugs. It assumes that any function starting with ”use” and a capital letter right after it is a Hook. We recognize this heuristic isn’t perfect and there may be some false positives, but without an ecosystem-wide convention there is just no way to make Hooks work well — and longer names will discourage people from either adopting Hooks or following the convention. | {'url': 'https://api.github.com/repos/facebook/react/issues/18118/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18118/timeline | null | completed | false |
https://api.github.com/repos/facebook/react/issues/18117 | https://api.github.com/repos/facebook/react | https://api.github.com/repos/facebook/react/issues/18117/labels{/name} | https://api.github.com/repos/facebook/react/issues/18117/comments | https://api.github.com/repos/facebook/react/issues/18117/events | https://github.com/facebook/react/issues/18117 | 570,149,126 | MDU6SXNzdWU1NzAxNDkxMjY= | 18,117 | Bug: component re-rendered in concurrent mode when useState initialiser uses console.log | {'login': 'joefreeman', 'id': 535128, 'node_id': 'MDQ6VXNlcjUzNTEyOA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/535128?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/joefreeman', 'html_url': 'https://github.com/joefreeman', 'followers_url': 'https://api.github.com/users/joefreeman/followers', 'following_url': 'https://api.github.com/users/joefreeman/following{/other_user}', 'gists_url': 'https://api.github.com/users/joefreeman/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/joefreeman/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/joefreeman/subscriptions', 'organizations_url': 'https://api.github.com/users/joefreeman/orgs', 'repos_url': 'https://api.github.com/users/joefreeman/repos', 'events_url': 'https://api.github.com/users/joefreeman/events{/privacy}', 'received_events_url': 'https://api.github.com/users/joefreeman/received_events', 'type': 'User', 'site_admin': False} | [{'id': 155984160, 'node_id': 'MDU6TGFiZWwxNTU5ODQxNjA=', 'url': 'https://api.github.com/repos/facebook/react/labels/Status:%20Unconfirmed', 'name': 'Status: Unconfirmed', 'color': 'd4c5f9', 'default': False, 'description': "A potential issue that we haven't yet confirmed as a bug"}] | closed | false | null | [] | null | [
"> This outputs: \"1\". With the console.log uncommented, this outputs: \"1 2 1 2\" (i.e., App is re-rendered, and the useState initialiser is run twice).\r\n\r\nThis isn't quite right. :smile: If you comment out the `console.log(\"2\")` line, you'll still see \"1\" logged twice.\r\n\r\nThat's because this demo app is using the (experimental) concurrent mode API and it double renders in DEV mode to help detect side effects:\r\nhttps://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects\r\n\r\nThe double rendering is expected, and will only happen in DEV mode. :smile:",
"Ah, sorry, I completely missed that the console was collapsing the repeated log line :weary: - thank you.",
"No worries :)"
] | 2020-02-24 21:11:59 | 2020-02-25 16:52:24 | 2020-02-25 02:33:44 | NONE | null | null | null | <!--
Please provide a clear and concise description of what the bug is. Include
screenshots if needed. Please test using the latest version of the relevant
React packages to make sure your issue has not already been fixed.
-->
React version:
```json
"react": "^0.0.0-experimental-5de5b6150",
"react-dom": "^0.0.0-experimental-5de5b6150",
```
## Steps To Reproduce
```javascript
function App() {
console.log('1');
const [state, setState] = useState(() => {
// console.log('2');
return 'state';
});
return (<p>{state}</p>);
}
ReactDOM
.createRoot(document.getElementById('root'))
.render(<App />);
```
This outputs: "1". With the `console.log` uncommented, this outputs: "1 2 1 2" (i.e., `App` is re-rendered, and the `useState` initialiser is run twice).
Link to code example:
https://codesandbox.io/s/practical-pond-u527l
## The current behavior
Output:
```
1
2
1
2
```
## The expected behavior
```
1
2
``` | {'url': 'https://api.github.com/repos/facebook/react/issues/18117/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0} | https://api.github.com/repos/facebook/react/issues/18117/timeline | null | completed | false |