Skip to content

Commit

Permalink
Remove console logs (#949)
Browse files Browse the repository at this point in the history
Missed these
  • Loading branch information
alvarlagerlof authored May 10, 2024
1 parent d9c5bd5 commit ed20b59
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .changeset/many-mugs-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@rsc-parser/embedded": patch
"@rsc-parser/core": patch
"@rsc-parser/embedded-example": patch
"@rsc-parser/chrome-extension": patch
"@rsc-parser/storybook": patch
"@rsc-parser/website": patch
---

Remove console logs
2 changes: 0 additions & 2 deletions packages/core/src/components/TimeScrubber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ function useTracks(messages: RscChunkMessage[]) {
}
}

console.log(messageTracks);

return messageTracks;
}, [messages]);
}
Expand Down
3 changes: 0 additions & 3 deletions packages/core/src/fetchPatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ function getFetchMethod(args: Parameters<typeof fetch>): "GET" | "POST" {
return method === "GET" || method === "POST";
}

console.log(JSON.stringify(args[1]));

if (args[0] instanceof Request && isGetOrPost(args[0].method)) {
return args[0].method;
} else if (typeof args[1]?.method === "undefined") {
Expand Down Expand Up @@ -68,7 +66,6 @@ export function fetchPatcher({
const clonedResponse = response.clone();
const reader = clonedResponse.body.getReader();

// eslint-disable-next-line no-constant-condition
while (true) {
const chunkStartTime = Date.now();
const { value, done } = await reader.read();
Expand Down
2 changes: 0 additions & 2 deletions packages/embedded/RscDevtoolsPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ function useRscMessages() {
// @ts-expect-error This is a hack
const payload = self.__next_f.map((f) => f?.[1]).join("");

console.log("TEST", payload);

const messages = [
{
type: "RSC_CHUNK",
Expand Down

0 comments on commit ed20b59

Please sign in to comment.