Skip to content

Commit c7fa978

Browse files
committed
Release Activity in Canary (#34374)
## Overview This PR ships `<Activity />` to the `react@canary` release channel for final feedback and prepare for semver stable release. ## What this means Shipping `<Activity />` to canary means it has gone through extensive testing in production, we are confident in the stability of the feature, 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 the feature. ## Why we follow the Canary Workflow To prepare for semver stable, libraries should test canary features like `<Activity>` 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 `<Activity />`. 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 Activity 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#activity) blog post, and [the new docs for `<Activity>`](https://react.dev/reference/react/Activity) for more info. ## TODO - [x] Bump Activity docs to Canary reactjs/react.dev#7974 --------- Co-authored-by: Sebastian Sebbie Silbermann <[email protected]> DiffTrain build for [68f00c9](68f00c9)
1 parent e7a86d2 commit c7fa978

34 files changed

+228
-218
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
93d7aa69b29c20529c40cf64b0afdb5d51c9ddd1
1+
68f00c901c05e3a91f6cc77b660bc2334700f163
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
93d7aa69b29c20529c40cf64b0afdb5d51c9ddd1
1+
68f00c901c05e3a91f6cc77b660bc2334700f163

compiled/facebook-www/React-dev.classic.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ __DEV__ &&
932932
var getCurrentStack = ReactSharedInternals.getCurrentStack;
933933
return null === getCurrentStack ? null : getCurrentStack();
934934
};
935+
exports.Activity = REACT_ACTIVITY_TYPE;
935936
exports.Children = deprecatedAPIs;
936937
exports.Component = Component;
937938
exports.Fragment = REACT_FRAGMENT_TYPE;
@@ -1418,7 +1419,7 @@ __DEV__ &&
14181419
exports.useTransition = function () {
14191420
return resolveDispatcher().useTransition();
14201421
};
1421-
exports.version = "19.2.0-www-classic-93d7aa69-20250912";
1422+
exports.version = "19.2.0-www-classic-68f00c90-20250912";
14221423
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14231424
"function" ===
14241425
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,7 @@ __DEV__ &&
932932
var getCurrentStack = ReactSharedInternals.getCurrentStack;
933933
return null === getCurrentStack ? null : getCurrentStack();
934934
};
935+
exports.Activity = REACT_ACTIVITY_TYPE;
935936
exports.Children = deprecatedAPIs;
936937
exports.Component = Component;
937938
exports.Fragment = REACT_FRAGMENT_TYPE;
@@ -1418,7 +1419,7 @@ __DEV__ &&
14181419
exports.useTransition = function () {
14191420
return resolveDispatcher().useTransition();
14201421
};
1421-
exports.version = "19.2.0-www-modern-93d7aa69-20250912";
1422+
exports.version = "19.2.0-www-modern-68f00c90-20250912";
14221423
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
14231424
"function" ===
14241425
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -377,40 +377,42 @@ function addTransitionType(type) {
377377
} else startTransition(addTransitionType.bind(null, type));
378378
}
379379
}
380-
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache };
381-
exports.Children = {
382-
map: mapChildren,
383-
forEach: function (children, forEachFunc, forEachContext) {
384-
mapChildren(
385-
children,
386-
function () {
387-
forEachFunc.apply(this, arguments);
388-
},
389-
forEachContext
390-
);
391-
},
392-
count: function (children) {
393-
var n = 0;
394-
mapChildren(children, function () {
395-
n++;
396-
});
397-
return n;
398-
},
399-
toArray: function (children) {
400-
return (
401-
mapChildren(children, function (child) {
402-
return child;
403-
}) || []
404-
);
405-
},
406-
only: function (children) {
407-
if (!isValidElement(children))
408-
throw Error(
409-
"React.Children.only expected to receive a single React element child."
380+
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
381+
Children = {
382+
map: mapChildren,
383+
forEach: function (children, forEachFunc, forEachContext) {
384+
mapChildren(
385+
children,
386+
function () {
387+
forEachFunc.apply(this, arguments);
388+
},
389+
forEachContext
410390
);
411-
return children;
412-
}
413-
};
391+
},
392+
count: function (children) {
393+
var n = 0;
394+
mapChildren(children, function () {
395+
n++;
396+
});
397+
return n;
398+
},
399+
toArray: function (children) {
400+
return (
401+
mapChildren(children, function (child) {
402+
return child;
403+
}) || []
404+
);
405+
},
406+
only: function (children) {
407+
if (!isValidElement(children))
408+
throw Error(
409+
"React.Children.only expected to receive a single React element child."
410+
);
411+
return children;
412+
}
413+
};
414+
exports.Activity = REACT_ACTIVITY_TYPE;
415+
exports.Children = Children;
414416
exports.Component = Component;
415417
exports.Fragment = REACT_FRAGMENT_TYPE;
416418
exports.Profiler = REACT_PROFILER_TYPE;
@@ -600,4 +602,4 @@ exports.useSyncExternalStore = function (
600602
exports.useTransition = function () {
601603
return ReactSharedInternals.H.useTransition();
602604
};
603-
exports.version = "19.2.0-www-classic-93d7aa69-20250912";
605+
exports.version = "19.2.0-www-classic-68f00c90-20250912";

compiled/facebook-www/React-prod.modern.js

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -377,40 +377,42 @@ function addTransitionType(type) {
377377
} else startTransition(addTransitionType.bind(null, type));
378378
}
379379
}
380-
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache };
381-
exports.Children = {
382-
map: mapChildren,
383-
forEach: function (children, forEachFunc, forEachContext) {
384-
mapChildren(
385-
children,
386-
function () {
387-
forEachFunc.apply(this, arguments);
388-
},
389-
forEachContext
390-
);
391-
},
392-
count: function (children) {
393-
var n = 0;
394-
mapChildren(children, function () {
395-
n++;
396-
});
397-
return n;
398-
},
399-
toArray: function (children) {
400-
return (
401-
mapChildren(children, function (child) {
402-
return child;
403-
}) || []
404-
);
405-
},
406-
only: function (children) {
407-
if (!isValidElement(children))
408-
throw Error(
409-
"React.Children.only expected to receive a single React element child."
380+
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
381+
Children = {
382+
map: mapChildren,
383+
forEach: function (children, forEachFunc, forEachContext) {
384+
mapChildren(
385+
children,
386+
function () {
387+
forEachFunc.apply(this, arguments);
388+
},
389+
forEachContext
410390
);
411-
return children;
412-
}
413-
};
391+
},
392+
count: function (children) {
393+
var n = 0;
394+
mapChildren(children, function () {
395+
n++;
396+
});
397+
return n;
398+
},
399+
toArray: function (children) {
400+
return (
401+
mapChildren(children, function (child) {
402+
return child;
403+
}) || []
404+
);
405+
},
406+
only: function (children) {
407+
if (!isValidElement(children))
408+
throw Error(
409+
"React.Children.only expected to receive a single React element child."
410+
);
411+
return children;
412+
}
413+
};
414+
exports.Activity = REACT_ACTIVITY_TYPE;
415+
exports.Children = Children;
414416
exports.Component = Component;
415417
exports.Fragment = REACT_FRAGMENT_TYPE;
416418
exports.Profiler = REACT_PROFILER_TYPE;
@@ -600,4 +602,4 @@ exports.useSyncExternalStore = function (
600602
exports.useTransition = function () {
601603
return ReactSharedInternals.H.useTransition();
602604
};
603-
exports.version = "19.2.0-www-modern-93d7aa69-20250912";
605+
exports.version = "19.2.0-www-modern-68f00c90-20250912";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -381,40 +381,42 @@ function addTransitionType(type) {
381381
} else startTransition(addTransitionType.bind(null, type));
382382
}
383383
}
384-
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache };
385-
exports.Children = {
386-
map: mapChildren,
387-
forEach: function (children, forEachFunc, forEachContext) {
388-
mapChildren(
389-
children,
390-
function () {
391-
forEachFunc.apply(this, arguments);
392-
},
393-
forEachContext
394-
);
395-
},
396-
count: function (children) {
397-
var n = 0;
398-
mapChildren(children, function () {
399-
n++;
400-
});
401-
return n;
402-
},
403-
toArray: function (children) {
404-
return (
405-
mapChildren(children, function (child) {
406-
return child;
407-
}) || []
408-
);
409-
},
410-
only: function (children) {
411-
if (!isValidElement(children))
412-
throw Error(
413-
"React.Children.only expected to receive a single React element child."
384+
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
385+
Children = {
386+
map: mapChildren,
387+
forEach: function (children, forEachFunc, forEachContext) {
388+
mapChildren(
389+
children,
390+
function () {
391+
forEachFunc.apply(this, arguments);
392+
},
393+
forEachContext
414394
);
415-
return children;
416-
}
417-
};
395+
},
396+
count: function (children) {
397+
var n = 0;
398+
mapChildren(children, function () {
399+
n++;
400+
});
401+
return n;
402+
},
403+
toArray: function (children) {
404+
return (
405+
mapChildren(children, function (child) {
406+
return child;
407+
}) || []
408+
);
409+
},
410+
only: function (children) {
411+
if (!isValidElement(children))
412+
throw Error(
413+
"React.Children.only expected to receive a single React element child."
414+
);
415+
return children;
416+
}
417+
};
418+
exports.Activity = REACT_ACTIVITY_TYPE;
419+
exports.Children = Children;
418420
exports.Component = Component;
419421
exports.Fragment = REACT_FRAGMENT_TYPE;
420422
exports.Profiler = REACT_PROFILER_TYPE;
@@ -604,7 +606,7 @@ exports.useSyncExternalStore = function (
604606
exports.useTransition = function () {
605607
return ReactSharedInternals.H.useTransition();
606608
};
607-
exports.version = "19.2.0-www-classic-93d7aa69-20250912";
609+
exports.version = "19.2.0-www-classic-68f00c90-20250912";
608610
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
609611
"function" ===
610612
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -381,40 +381,42 @@ function addTransitionType(type) {
381381
} else startTransition(addTransitionType.bind(null, type));
382382
}
383383
}
384-
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache };
385-
exports.Children = {
386-
map: mapChildren,
387-
forEach: function (children, forEachFunc, forEachContext) {
388-
mapChildren(
389-
children,
390-
function () {
391-
forEachFunc.apply(this, arguments);
392-
},
393-
forEachContext
394-
);
395-
},
396-
count: function (children) {
397-
var n = 0;
398-
mapChildren(children, function () {
399-
n++;
400-
});
401-
return n;
402-
},
403-
toArray: function (children) {
404-
return (
405-
mapChildren(children, function (child) {
406-
return child;
407-
}) || []
408-
);
409-
},
410-
only: function (children) {
411-
if (!isValidElement(children))
412-
throw Error(
413-
"React.Children.only expected to receive a single React element child."
384+
var ReactCompilerRuntime = { __proto__: null, c: useMemoCache },
385+
Children = {
386+
map: mapChildren,
387+
forEach: function (children, forEachFunc, forEachContext) {
388+
mapChildren(
389+
children,
390+
function () {
391+
forEachFunc.apply(this, arguments);
392+
},
393+
forEachContext
414394
);
415-
return children;
416-
}
417-
};
395+
},
396+
count: function (children) {
397+
var n = 0;
398+
mapChildren(children, function () {
399+
n++;
400+
});
401+
return n;
402+
},
403+
toArray: function (children) {
404+
return (
405+
mapChildren(children, function (child) {
406+
return child;
407+
}) || []
408+
);
409+
},
410+
only: function (children) {
411+
if (!isValidElement(children))
412+
throw Error(
413+
"React.Children.only expected to receive a single React element child."
414+
);
415+
return children;
416+
}
417+
};
418+
exports.Activity = REACT_ACTIVITY_TYPE;
419+
exports.Children = Children;
418420
exports.Component = Component;
419421
exports.Fragment = REACT_FRAGMENT_TYPE;
420422
exports.Profiler = REACT_PROFILER_TYPE;
@@ -604,7 +606,7 @@ exports.useSyncExternalStore = function (
604606
exports.useTransition = function () {
605607
return ReactSharedInternals.H.useTransition();
606608
};
607-
exports.version = "19.2.0-www-modern-93d7aa69-20250912";
609+
exports.version = "19.2.0-www-modern-68f00c90-20250912";
608610
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
609611
"function" ===
610612
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19754,10 +19754,10 @@ __DEV__ &&
1975419754
(function () {
1975519755
var internals = {
1975619756
bundleType: 1,
19757-
version: "19.2.0-www-classic-93d7aa69-20250912",
19757+
version: "19.2.0-www-classic-68f00c90-20250912",
1975819758
rendererPackageName: "react-art",
1975919759
currentDispatcherRef: ReactSharedInternals,
19760-
reconcilerVersion: "19.2.0-www-classic-93d7aa69-20250912"
19760+
reconcilerVersion: "19.2.0-www-classic-68f00c90-20250912"
1976119761
};
1976219762
internals.overrideHookState = overrideHookState;
1976319763
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19791,7 +19791,7 @@ __DEV__ &&
1979119791
exports.Shape = Shape;
1979219792
exports.Surface = Surface;
1979319793
exports.Text = Text;
19794-
exports.version = "19.2.0-www-classic-93d7aa69-20250912";
19794+
exports.version = "19.2.0-www-classic-68f00c90-20250912";
1979519795
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1979619796
"function" ===
1979719797
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)