Skip to content

fix crash in shared/dom route (#491)#521

Open
jagadish-555 wants to merge 1 commit into
theatre-js:mainfrom
jagadish-555:bug/issue-491
Open

fix crash in shared/dom route (#491)#521
jagadish-555 wants to merge 1 commit into
theatre-js:mainfrom
jagadish-555:bug/issue-491

Conversation

@jagadish-555
Copy link
Copy Markdown

This PR fixes a crash where the DOM playground scene wouldn’t load due to a Studio initialization race condition.

What’s changed:

In Scene.tsx, replaced getStudioSync() with an async getStudio().then() call so we wait for Studio to initialize before using it — preventing the “undefined” access crash.

In index.tsx, added import '@theatre/studio' to ensure the Studio bundle is included in the build, fixing the 404s and the “Project state is empty” issue.

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
theatre-playground Error Error Dec 3, 2025 3:33pm

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@Alchemy86
Copy link
Copy Markdown

This still an ongoing project?

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.

3 participants