Skip to content

Conversation

@danilowoz
Copy link
Contributor

No description provided.

@danilowoz danilowoz requested a review from CompuIves September 10, 2024 09:49
@codesandbox
Copy link

codesandbox bot commented Sep 10, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link

vercel bot commented Sep 10, 2024

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 Sep 10, 2024 10:10am
sandpack-landing 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 10:10am
sandpack-theme 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 10:10am

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 10, 2024

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.

title: "Intro/Playground",
};

localStorage.setItem("SANDPACK_INTERNAL:URL-CONSISTENT-ID", "123123123");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed? Should the user do this too?

const getStableServiceWorkerId = async () => {
const key = `SANDPACK_INTERNAL:URL-CONSISTENT-ID`;
const fixedId = localStorage.getItem(key);
if (fixedId) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should do localStorage.setItem for the id if it turns out it's not set (with a random id). Then we don't have to ask the user to set it.

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.

4 participants