Skip to content

Conversation

eps1lon
Copy link
Collaborator

@eps1lon eps1lon commented Sep 28, 2025

Also enables these APIs for FB builds.
Docs are work-in-progress.

@react-sizebot
Copy link

react-sizebot commented Sep 28, 2025

The size diff is too large to display in a single comment. The GitHub action for this pull request contains an artifact called 'sizebot-message.md' with the full message.

Generated by 🚫 dangerJS against c9355cc

@eps1lon eps1lon force-pushed the sebbie/09-28-ship_partial-prerendering_apis_to_canary branch 4 times, most recently from ede8cd4 to 8b2cc91 Compare September 28, 2025 16:11
@eps1lon eps1lon force-pushed the sebbie/09-28-ship_partial-prerendering_apis_to_canary branch from 8b2cc91 to 5bcfccc Compare September 28, 2025 16:13
result.prelude.pipe(writable);
});
expect(getVisibleChildren(container)).toEqual(undefined);
expect(errors).toEqual([]);
Copy link
Collaborator Author

@eps1lon eps1lon Sep 28, 2025

Choose a reason for hiding this comment

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

The test used to fail due to prerenderToNodeStream not existing. Since that API exists everywhere now, the only error happens in onError calling console.error(postponedValue). However, we ignore console.error(someErrorInstance) in our testing infra and it would take a while to update all the tests to also assert on prod errors.

In dev the test failed because we also called console.error with the environment name

@eps1lon eps1lon force-pushed the sebbie/09-28-ship_partial-prerendering_apis_to_canary branch from 5bcfccc to 5ba4156 Compare September 28, 2025 16:22
@eps1lon eps1lon force-pushed the sebbie/09-28-ship_partial-prerendering_apis_to_canary branch from 5ba4156 to bdac823 Compare September 28, 2025 18:25
Comment on lines -1592 to 1601
if (__EXPERIMENTAL__) {
const useTransitionHelper = () => React.useTransition();
const useDeferredValueHelper = () =>
React.useDeferredValue(0, {timeoutMs: 1000});
const useTransitionHelper = () => React.useTransition();
const useDeferredValueHelper = () =>
React.useDeferredValue(0, {timeoutMs: 1000});

orderedHooks.push(useTransitionHelper);
orderedHooks.push(useDeferredValueHelper);
orderedHooks.push(useTransitionHelper);
orderedHooks.push(useDeferredValueHelper);

hooksInList.push(useTransitionHelper);
hooksInList.push(useDeferredValueHelper);
}
hooksInList.push(useTransitionHelper);
hooksInList.push(useDeferredValueHelper);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

drive-by fix when looking for things gated on experimental.

@eps1lon eps1lon marked this pull request as ready for review September 29, 2025 16:24
@eps1lon eps1lon merged commit 1bd1f01 into facebook:main Oct 1, 2025
241 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 1, 2025
@eps1lon eps1lon deleted the sebbie/09-28-ship_partial-prerendering_apis_to_canary branch October 2, 2025 17:25
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.

3 participants