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: loosen instanceof checks for CSB issue #3426

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

CodyJasonBennett
Copy link
Member

Loosens checks using instanceof for Codesandbox, which duplicates copies of three.js and breaks constructor identity. Materials/geometry won't automatically attach if they have a different constructor identity and break the instanceof check.

The copy codepath in applyProps and HMR still won't work entirely correctly, and this needs a proper fix on Codesandbox.

Copy link

codesandbox-ci bot commented Jan 9, 2025

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 04540a2:

Sandbox Source
example Configuration

@CodyJasonBennett CodyJasonBennett merged commit 16c8289 into master Jan 9, 2025
2 checks passed
@CodyJasonBennett CodyJasonBennett deleted the fix/drop-instanceof branch January 9, 2025 08:42
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.

1 participant