console.log in template literals are also modifie by server logging

Open
#220 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
react, typescript
Domain
devtools

Research direction

Start with the linked CodeSandbox example, especially app/welcome/welcome.tsx lines 14–15, and trace how server logging processes console.log text inside rendered child content. Done means code snippets containing console.* no longer receive server-log modifications while genuine application logs continue to be enhanced; the issue does not name a test file.

Written by the indexing model from the issue text.

Description

It took me a while to understand why some code snippets in my apps with console logs started displaying some weird console.log output.

RRD seems to pick any console.log while enhancing logs, so any code snippets with console.* inside as well

Here an example

I am not sure of a simple way to differentiate console.log in the code from console.log rendered in a child.

Dominant language
TypeScript
Stars
975
Forks
55
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from code-forge-io/react-router-devtools

All issues in code-forge-io/react-router-devtools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.