question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-is breaking change, re AsyncMode

See original GitHub issue

It seems like react-is v16.6 no longer is compatible with React v16.3 - v16.5, in that React v16.3 - v16.5 will use Symbol(react.async_mode), but react-is’s AsyncMode export will instead be Symbol(react.concurrent_mode).

It seems like the async mode symbol needs to remain the same in react-is 16.6+, and the isAsyncMode function would need to check both the AsyncMode and ConcurrentMode symbols.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
gaearoncommented, Oct 24, 2018

If react-is v16.6+ had an AsyncMode symbol export that matched what React 16.3-16.5 did, then I think this wouldn’t be a problem.

I think that sounds okay, we could do it. PR?

0reactions
ljharbcommented, Oct 25, 2018

I understand the dilemma. In this case, the functionality hasn’t changed, and I’m not sure why it was renamed - iow i’m not sure how it helps people try it out to have the name change now, when it’s still going to have to change again when it gets promoted to being stable.

The tradeoffs seem to be somewhere between “difficult for people to try it out”, “cause breakage in some amount of downstream tooling”, or “incur a tiny additional bundle cost to maintain back compat”. It’s a tough call, and I’m not asking for a policy change - but in this case, the bundle size increase of #13959 seems pretty close to zero (i can’t imagine it’s more than a handful of bytes), and the benefit is that enzyme (and presumably other downstream tools) will be able to continue using react-is without having to hardcode things.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update on Async Rendering – React Blog
Before we begin, here's a quick overview of the lifecycle changes planned for version 16.3: We are adding the following lifecycle aliases: ...
Read more >
Agile Product Lifecycle Management - Oracle Help Center
Logic Server (WLS) environment. Other enhancements and changes are: ▫ Resolution of reported issues to extract the sample files on WLS and broken...
Read more >
Open and Resolved Bugs for the Latest Webex Meetings ...
See the open and resolved customer-found bugs for the latest versions of the Cisco Webex Meetings Suite. Resolved bug lists are in order ......
Read more >
8.5 Release Notes Red Hat Enterprise Linux 8
The supported in-place upgrade paths currently are: From RHEL 7.9 to RHEL 8.4 ... Fixed multiple segfaults and a broken test in the...
Read more >
sec-usr-aaa-xe-3s-book.pdf - Cisco
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its ... Configuration Examples for RADIUS Change of Authorization 77....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found