code-forge-io / code-forge-io/react-router-devtools
console.log in template literals are also modifie by server logging
- 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