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

fix(sandpack-content): destroy current client in case it tries to run it again #875

Merged
merged 2 commits into from
Apr 3, 2023

Conversation

danilowoz
Copy link
Member

If Sandpack tries to run runSandpack multiple times for the same cliend-id, it should first destroy the current instance and recreate the client again in order to wire up all listeners once again.

Closes #852

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 3, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 20f62b8:

Sandbox Source
Sandpack Configuration
sandpack-run-stale-value Configuration
sandpack-run-stale-value Issue #852
sandpack-run-stale-value Issue #852

@vercel
Copy link

vercel bot commented Apr 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sandpack-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 3, 2023 5:08pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running Sandpack programatically via the runSandpack API provides stale results
1 participant