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: update drei imports #65

Merged
merged 2 commits into from
Mar 27, 2021
Merged

fix: update drei imports #65

merged 2 commits into from
Mar 27, 2021

Conversation

joshuaellis
Copy link
Member

From v3 (currently in beta) import { component } from '@react-three/drei/component' will no longer work because of the refactoring done to work with react-native.

importing items from @react-three/drei is already supported in the most recent version.

Or we can leave it for people to fix themselves, depends what you'd prefer.

these will break with the release of v3 but will work now too.
@joshuaellis joshuaellis added the enhancement New feature or request label Jan 22, 2021
@gsimone
Copy link
Member

gsimone commented Jan 22, 2021

@drcmda tree shaking should work fine in drei now, so it could be no big deal importing from index 🤷

@joshuaellis joshuaellis linked an issue Feb 8, 2021 that may be closed by this pull request
@drcmda drcmda merged commit cf6cca9 into master Mar 27, 2021
@joshuaellis joshuaellis deleted the fix/drei-imports branch March 27, 2021 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto import tag correction for useGLTF
3 participants