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

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

オープン
#220 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
972
フォーク
55
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

リンクされている CodeSandbox の例、特に app/welcome/welcome.tsx の 14–15 行目から始め、サーバーロギングがレンダリングされた子コンテンツ内の console.log テキストをどのように処理するかを追跡してください。コードスニペットに console.* が含まれている場合はサーバーログの変更が行われなくなり、一方で実際のアプリケーションログは引き続き拡張される状態になれば完了です。issue ではテストファイルは指定されていません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react, typescript
領域
devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。