mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-12-23 10:11:57 +00:00
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:
parent
05795b75a5
commit
ca535ba78f
1 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue