react/packages/shared
Sebastian "Sebbie" Silbermann a4eb2dfa6f
Release Fragment refs to Canary (#34720)
## Overview

This PR adds the `ref` prop to `<Fragment>` in `react@canary`.

This means this API is ready for final feedback and prepared for a
semver stable release.

## What this means

Shipping Fragment refs to canary means they have gone through extensive
testing in production, we are confident in the stability of the APIs,
and we are preparing to release it in a future semver stable version.

Libraries and frameworks following the [Canary
Workflow](https://react.dev/blog/2023/05/03/react-canaries) should begin
implementing and testing these features.

## Why we follow the Canary Workflow

To prepare for semver stable, libraries should test canary features like
Fragment refs with `react@canary` to confirm compatibility and prepare
for the next semver release in a myriad of environments and
configurations used throughout the React ecosystem. This provides
libraries with ample time to catch any issues we missed before slamming
them with problems in the wider semver release.

Since these features have already gone through extensive production
testing, and we are confident they are stable, frameworks following the
[Canary Workflow](https://react.dev/blog/2023/05/03/react-canaries) can
also begin adopting canary features like Fragment refs.

This adoption is similar to how different Browsers implement new
proposed browser features before they are added to the standard. If a
frameworks adopts a canary feature, they are committing to stability for
their users by ensuring any API changes before a semver stable release
are opaque and non-breaking to their users.

Apps not using a framework are also free to adopt canary features like
Fragment refs as long as they follow the [Canary
Workflow](https://react.dev/blog/2023/05/03/react-canaries), but we
generally recommend waiting for a semver stable release unless you have
the capacity to commit to following along with the canary changes and
debugging library compatibility issues.

Waiting for semver stable means you're able to benefit from libraries
testing and confirming support, and use semver as signal for which
version of a library you can use with support of the feature.

## Docs 

Check out the ["React Labs: View Transitions, Activity, and
more"](https://react.dev/blog/2025/04/23/react-labs-view-transitions-activity-and-more#fragment-refs)
blog post, and [the new docs for Fragment
refs`](https://react.dev/reference/react/Fragment#fragmentinstance) for
more info.
2025-10-06 21:24:24 -07:00
..
__tests__ Remove enableComponentStackLocations (#31764) 2024-12-13 15:52:42 -05:00
forks Release Fragment refs to Canary (#34720) 2025-10-06 21:24:24 -07:00
assign.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
binaryToComparableString.js [Flight] Taint APIs (#27445) 2023-10-02 13:55:39 -04:00
CheckStringCoercion.js Minify DEV bundles with closure (#29809) 2024-06-08 11:15:57 -04:00
ConsolePatchingDev.js lint: enable reportUnusedDisableDirectives and remove unused suppressions (#28721) 2024-06-21 12:24:32 -04:00
DefaultPrepareStackTrace.js Fork the "empty" prepareStackTrace case for Server builds (#31427) 2024-11-05 15:05:04 -05:00
DefaultPrepareStackTraceV8.js Fork the "empty" prepareStackTrace case for Server builds (#31427) 2024-11-05 15:05:04 -05:00
enqueueTask.js Upgrade flow to 0.235.0 (#30118) 2024-07-08 14:11:11 -04:00
ExecutionEnvironment.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
formatProdErrorMessage.js Update error decoder URL (#27240) 2024-01-17 21:41:07 -05:00
getComponentNameFromType.js Stringify context as SomeContext instead of SomeContext.Provider (#33507) 2025-06-11 12:08:04 -04:00
getPrototypeOf.js [Flight] Enforce "simple object" rule in production (#27502) 2023-10-11 12:18:49 -04:00
hasOwnProperty.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
isArray.js Update Flow to 0.248 (#34248) 2025-08-21 11:15:34 -04:00
noop.js Use a shared noop function from shared/noop (#33154) 2025-05-08 21:33:18 -04:00
normalizeConsoleFormat.js [Flight] Prefix Replayed Console Logs with a Badge (#28403) 2024-02-21 14:59:08 -05:00
objectIs.js [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
package.json Drop Haste (#11303) 2017-10-25 02:55:00 +03:00
ReactComponentInfoStack.js [flags] remove enableOwnerStacks (#32426) 2025-03-04 12:34:34 -05:00
ReactComponentStackFrame.js Get Server Component Function Location for Parent Stacks using Child's Owner Stack (#33629) 2025-06-24 16:35:28 -04:00
ReactDOMFragmentRefShared.js Add compareDocumentPosition to Fabric FragmentInstance (#34103) 2025-08-15 15:07:42 -04:00
ReactDOMSharedInternals.js Rename SECRET INTERNALS to __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE (#28789) 2024-04-09 12:20:22 -04:00
ReactElementType.js [Fiber] Use Owner/JSX Stack When Appending Stacks to Console (#29206) 2024-05-25 11:58:17 -04:00
ReactFeatureFlags.js Release Fragment refs to Canary (#34720) 2025-10-06 21:24:24 -07:00
ReactFlightPropertyAccess.js Include Component Props in Performance Track (#33655) 2025-06-27 08:45:56 -04:00
ReactInstanceMap.js remove unstable_renderSubtreeIntoContainer (#29771) 2024-06-12 11:14:51 -04:00
ReactIODescription.js [Flight] Compute better I/O description for exotic types (#34650) 2025-09-29 21:03:07 +02:00
ReactOwnerStackFrames.js fix: rename bottom stack frame (#33680) 2025-07-01 18:06:26 +01:00
ReactOwnerStackReset.js Stop creating Owner Stacks if many have been created recently (#32529) 2025-03-23 15:47:03 -07:00
ReactPerformanceTrackProperties.js [Fiber] Bail out of diffing wide objects and arrays (#34742) 2025-10-06 01:13:22 +02:00
ReactSerializationErrors.js [Flight] Support classes in renderDebugModel (#33590) 2025-06-22 18:00:08 -04:00
ReactSharedInternals.js Rename SECRET INTERNALS to __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE (#28789) 2024-04-09 12:20:22 -04:00
ReactSymbols.js Remove feature flag enableRenderableContext (#33505) 2025-06-11 11:53:04 -04:00
ReactTypes.js [Flight][Fiber] Encode owner in the error payload in dev and use it as the Error's Task (#34460) 2025-09-12 11:55:07 -04:00
ReactVersion.js Bump next prerelease version numbers (#34674) 2025-10-02 00:31:55 +02:00
reportGlobalError.js lint: enable reportUnusedDisableDirectives and remove unused suppressions (#28721) 2024-06-21 12:24:32 -04:00
shallowEqual.js Flow upgrade to 0.205.1 (#26796) 2023-05-09 10:45:50 -04:00