react v16.9.0 Release Notes
Release Date: 2019-04-03 // about 5 years ago-
React
- โ Add
<React.Profiler>
API for gathering performance measurements programmatically. (@bvaughn in #15172) - Remove
unstable_ConcurrentMode
in favor ofunstable_createRoot
. (@acdlite in #15532)
React DOM
- ๐ Deprecate old names for the
UNSAFE_*
lifecycle methods. (@bvaughn in #15186 and @threepointone in #16103) - ๐ Deprecate
javascript:
URLs as a common attack surface. (@sebmarkbage in #15047) - ๐ Deprecate uncommon "module pattern" (factory) components. (@sebmarkbage in #15145)
- โ Add support for the
disablePictureInPicture
attribute on<video>
. (@eek in #15334) - โ Add support for
onLoad
event for<embed>
. (@cherniavskii in #15614) - โ Add support for editing
useState
state from DevTools. (@bvaughn in #14906) - โ Add support for toggling Suspense from DevTools. (@gaearon in #15232)
- ๐ Warn when
setState
is called fromuseEffect
, creating a loop. (@gaearon in #15180) - ๐ Fix a memory leak. (@paulshen in #16115)
- ๐ Fix a crash inside
findDOMNode
for components wrapped in<Suspense>
. (@acdlite in #15312) - ๐ Fix pending effects from being flushed too late. (@acdlite in #15650)
- ๐ Fix incorrect argument order in a warning message. (@brickspert in #15345)
- ๐ Fix hiding Suspense fallback nodes when there is an
!important
style. (@acdlite in #15861 and #15882) - ๐ Slightly improve hydration performance. (@bmeurer in #15998)
React DOM Server
โ React Test Utilities and Test Renderer
- โ Add
act(async () => ...)
for testing asynchronous state updates. (@threepointone in #14853) - โ Add support for nesting
act
from different renderers. (@threepointone in #16039 and #16042) - โฑ Warn in Strict Mode if effects are scheduled outside an
act()
call. (@threepointone in #15763 and #16041) - Warn when using
act
from the wrong renderer. (@threepointone in #15756)
๐ ESLint Plugin: React Hooks
- โ Add