Skip to content

Add unstable_Activity to server entrypoint#32833

Merged
acdlite merged 1 commit into
facebook:mainfrom
acdlite:add-activity-to-server-entrypoint
Apr 9, 2025
Merged

Add unstable_Activity to server entrypoint#32833
acdlite merged 1 commit into
facebook:mainfrom
acdlite:add-activity-to-server-entrypoint

Conversation

@acdlite
Copy link
Copy Markdown
Collaborator

@acdlite acdlite commented Apr 9, 2025

Activity is a client component, but you should still be able to import it and render it from a Server Component. Same as what we do with other types like Suspense and ViewTransition.

Activity is a client component, but you should still be able to import
it and render it from a Server Component. Same as what we do with
other types like Suspense and ViewTransition.
@acdlite acdlite requested a review from sebmarkbage April 9, 2025 02:04
@github-actions github-actions Bot added the React Core Team Opened by a member of the React Core Team label Apr 9, 2025
@react-sizebot
Copy link
Copy Markdown

Comparing: 8da36d0...a372840

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.68 kB 6.68 kB +0.05% 1.83 kB 1.83 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 517.53 kB 517.53 kB = 92.06 kB 92.06 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.69 kB 6.69 kB = 1.83 kB 1.83 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 622.34 kB 622.34 kB = 110.13 kB 110.13 kB
facebook-www/ReactDOM-prod.classic.js = 655.25 kB 655.25 kB = 115.70 kB 115.70 kB
facebook-www/ReactDOM-prod.modern.js = 645.53 kB 645.53 kB = 114.15 kB 114.15 kB

Significant size changes

Includes any change greater than 0.2%:

Expand to show
Name +/- Base Current +/- gzip Base gzip Current gzip
oss-experimental/react/cjs/react.react-server.production.js +0.55% 18.76 kB 18.86 kB +0.62% 4.97 kB 5.00 kB

Generated by 🚫 dangerJS against a372840

Copy link
Copy Markdown
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was just thinking this actually

@acdlite acdlite merged commit 8571249 into facebook:main Apr 9, 2025
@LUCIA123-BEEP

This comment was marked as off-topic.

@christianstamati
Copy link
Copy Markdown

I'm encountering this error after installing the latest experimental version of React:

Module '"react"' has no exported member 'unstable_Activity'.

Here’s a snippet from my package.json:


"next": "15.2.4",
"react": "0.0.0-experimental-0ff1d13b-20250507",
"react-dom": "0.0.0-experimental-0ff1d13b-20250507",
"eslint-plugin-react-hooks": "0.0.0-experimental-0ff1d13b-20250507"

Am I missing something or doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants