You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The runtime contains a type check to determine if a user-provided ref is
a valid type — a function or object (or a string, when
`disableStringRefs` is off). This currently happens during child
reconciliation. This changes it to happen only when the ref is passed to
the component that the ref is being attached to.
This is a continuation of the "ref as prop" change — until you actually
pass a ref to a HostComponent, class, etc, ref is a normal prop that has
no special behavior.
Copy file name to clipboardExpand all lines: scripts/error-codes/codes.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -280,7 +280,7 @@
280
280
"281": "Finished root should have a work-in-progress. This error is likely caused by a bug in React. Please file an issue.",
281
281
"282": "If the root does not have an updateQueue, we should have already bailed out. This error is likely caused by a bug in React. Please file an issue.",
282
282
"283": "Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.",
283
-
"284": "Expected ref to be a function, a string, an object returned by React.createRef(), or null.",
283
+
"284": "Expected ref to be a function, an object returned by React.createRef(), or undefined/null.",
284
284
"285": "The root failed to unmount after an error. This is likely a bug in React. Please file an issue.",
285
285
"286": "%s(...): the first argument must be a React class instance. Instead received: %s.",
286
286
"287": "It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `schedule/tracking` module with `schedule/tracking-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at https://reactjs.org/link/profiling",
0 commit comments