Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new flag to <SandpackConsole> that clears messages on each re-render #692

Closed
1 of 2 tasks
iampava opened this issue Jan 24, 2023 · 2 comments · Fixed by #743
Closed
1 of 2 tasks

Add a new flag to <SandpackConsole> that clears messages on each re-render #692

iampava opened this issue Jan 24, 2023 · 2 comments · Fixed by #743
Labels
triage New issues that needs consideration

Comments

@iampava
Copy link
Contributor

iampava commented Jan 24, 2023

Tell us how you think we can improve Sandpack

Add a flag to <SandpackConsole> that clears the console on each re-render.

Packages affected

  • sandpack-client
  • sandpack-react

What is this feature?

Currently, while using the <SandpackConsole> logs keep being added. I think it should have a flag, similar to how browsers handle this using Presever console, which console when/how the messages are deleted.

@danilowoz
Copy link
Member

#743 implements it:

<SandpackConsole resetOnPreviewRestart />

@iampava
Copy link
Contributor Author

iampava commented Mar 3, 2023

Amazing! Thanks 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage New issues that needs consideration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants