fix: correctly log errors from reconciler to stderr

stdout gets consumed by the client, so we change console.log to console.error to actually see logs
This commit is contained in:
ByteAtATime 2025-11-23 16:31:15 -08:00
parent 05795b75a5
commit ca535ba78f
No known key found for this signature in database

View file

@ -235,6 +235,11 @@ const HostConfig: Reconciler.HostConfig<
prepareForCommit: () => null,
resetAfterCommit(node) {
const navStackNode = node.children[0];
if (!navStackNode) {
return;
}
if (
typeof navStackNode !== "object" ||
navStackNode?.type !== "flare-nav-stack"
@ -284,9 +289,9 @@ const container = reconciler.createContainer(
null, // concurrentUpdatesByDefaultOverride
"", // identifierPrefix
console.log, // onUncaughtError
console.log, // onCaughtError
console.log, // onRecoverableError
console.error, // onUncaughtError
console.error, // onCaughtError
console.error, // onRecoverableError
() => {}, // onDefaultTransitionIndicator
null
);