-
Notifications
You must be signed in to change notification settings - Fork 49.2k
Changelog for 16.9 #16254
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Changelog for 16.9 #16254
Conversation
No significant bundle size changes to report. Generated by 🚫 dangerJS |
AsyncMode -> ConcurrentMode ->createRoot -> ? |
@Go7hic When it's stable, you will see it in release notes. :-) We can't predict the future, but we're working to ship it. There's still more work ahead. |
Is there something I can call to make javascript: urls an error, not a warning? Or does the feature flag require a special build of React to enable this? EDIT: AFAICT not really — in react tests there’s:
but i don’t think it will work in actual react builds. I would be highly in favor of adding a function like |
You can always do custom builds of React from master. (Even from the same commits that go out in a release.) And toggle it on. That's what we do. We generally don't allow runtime configuration because it doesn't compose well. Like if you have several apps on one page. |
@gaearon are you guys working on ReactDOMServer Suspense Support? Where is it in the queue? |
We've added initial infrastructure but haven't started on the implementation yet. Please let's keep this thread focused on the 16.9 release. |
Seems like async act won't help solve this one, right? As setState gets called in promise handlers internally there is no way for act to wrap it. |
Don't forget who was the first mentioning this issue for core team, lol |
Good Job |
@Andarist this is a great usecase for async act. made a PR with a fix and some notes - final-form/react-final-form#578 |
Is there anything significant new feature I should learn for this release? (Like hooks / suspense on previous releases)? |
There will be a blog post, but this release is relatively minor in terms of new features. |
@gaearon: Did we intentionally omit mention of |
React
<React.Profiler>
API for gathering performance measurements programmatically. (@bvaughn in #15172)unstable_ConcurrentMode
in favor ofunstable_createRoot
. (@acdlite in #15532)React DOM
UNSAFE_*
lifecycle methods. (@bvaughn in #15186 and @threepointone in #16103)javascript:
URLs as a common attack surface. (@sebmarkbage in #15047)disablePictureInPicture
attribute on<video>
. (@eek in #15334)onLoad
event for<embed>
. (@cherniavskii in #15614)useState
state from DevTools. (@bvaughn in #14906)setState
is called fromuseEffect
, creating a loop. (@gaearon in #15180)findDOMNode
for components wrapped in<Suspense>
. (@acdlite in #15312)!important
style. (@acdlite in #15861 and #15882)React DOM Server
React Test Utilities and Test Renderer
act(async () => ...)
for testing asynchronous state updates. (@threepointone in #14853)act
from different renderers. (@threepointone in #16039 and #16042)act()
call. (@threepointone in #15763 and #16041)act
from the wrong renderer. (@threepointone in #15756)