Skip to content

fix out-of-date values in console#4115

Open
joshuahhh wants to merge 1 commit into
processing:developfrom
joshuahhh:sync-console-hook
Open

fix out-of-date values in console#4115
joshuahhh wants to merge 1 commit into
processing:developfrom
joshuahhh:sync-console-hook

Conversation

@joshuahhh
Copy link
Copy Markdown

Issue:

Fixes #1203: out-of-date values printed in console messages due to console-feed library's asynchronicity.

Demo:

Before on left, after on right. (You can ignore the HMR noise.)

Screenshot 2026-05-12 at 9 08 02 PM

Changes:

Instead of using console-feed's built-in Hook function, which uses setTimeout, I switch to a simpler hookConsoleSync which parses function arguments and calls the callback synchronously.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Console doesn't print current variable content for Object types (bug in console-feed)

1 participant