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

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

Open
#220 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
972
Forks
55
PR merge metrics
No merged PRs in 30d

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](https://codesandbox.io/p/devbox/qzydx4?file=%2Fapp%2Fwelcome%2Fwelcome.tsx%3A14%2C15)

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

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.