-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrading to React@17 #358
Comments
Enzyme is currently configured to be the primary test environment for Jest (via
Obviously the |
|
Describe the bug
React v17.0 has been released with changelog:
React
react/jsx-runtime
andreact/jsx-dev-runtime
for the new JSX transform.displayName
on context for improved stacks.'use strict'
from leaking in the UMD bundles.fb.me
for redirects.React DOM
document
.useEffect
cleanup functions asynchronously.focusin
andfocusout
foronFocus
andonBlur
.Capture
events use the browser capture phase.onScroll
event.forwardRef
ormemo
component returnsundefined
.console
in the second render pass of DEV mode double render.ReactTestUtils.SimulateNative
API.ReactDOM.flushSync
during lifecycle methods (but warn).code
property to the keyboard event objects.disableRemotePlayback
property forvideo
elements.enterKeyHint
property forinput
elements.value
is provided to<Context.Provider>
.memo
orforwardRef
components returnundefined
.onTouchStart
,onTouchMove
, andonWheel
passive.setState
hanging in development inside a closed iframe.defaultProps
.dangerouslySetInnerHTML
isundefined
.require
implementation.onBeforeInput
reporting an incorrectevent.type
.event.relatedTarget
reported asundefined
in Firefox.movementX/Y
polyfill with capture events.onSubmit
andonReset
events.React DOM Server
useCallback
behavior consistent withuseMemo
for the server renderer.React Test Renderer
findByType
error message.Concurrent Mode (Experimental)
unstable_
prefix before the experimental APIs.unstable_discreteUpdates
andunstable_flushDiscreteUpdates
.timeoutMs
argument.<div hidden />
prerendering in favor of a different future API.unstable_expectedLoadTime
to Suspense for CPU-bound trees.unstable_useOpaqueIdentifier
Hook.unstable_startTransition
API.act
in the test renderer no longer flushes Suspense fallbacks.useMutableSource
that may happen whengetSnapshot
changes.useMutableSource
.Additional considerations must be resolved prior to upgrading Synectic to React@17.
Versions (please complete the following information):
development
)Additional context
#357 also brings up a discussion of whether to reduce the number of testing frameworks (we currently use Enzyme, React Testing Library (RTL) and Jest in combination across all tests). Several projects are now dropping the use of Enzyme and switching to RTL for all of their testing.
The text was updated successfully, but these errors were encountered: