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

Importing from different files creates multiple stores. #1979

Open
mayank1513 opened this issue Jun 4, 2024 · 2 comments
Open

Importing from different files creates multiple stores. #1979

mayank1513 opened this issue Jun 4, 2024 · 2 comments
Labels
bug Something isn't working Stale Inactive issue

Comments

@mayank1513
Copy link

  • three version: latest
  • @react-three/fiber version: latest
  • @react-three/drei version: latest
  • node version: 18
  • npm (or yarn) version: 1.22.19

Problem description:

I want to import { Loader } from "@react-three/drei/web/Loader" for better treeshaking. But this creates an isolated store.

Similarly, I want to import { KeyboardControls } from "@react-three/drei/web/KeyboardControls". This also creates an isolated store.

For more details, please see https://treeshakable.vercel.app/

Relevant code:

let your = (code, tell) => `the ${story}`

Suggested solution:

I will create a fix using treeshakable.

@mayank1513 mayank1513 added the bug Something isn't working label Jun 4, 2024
@mayank1513
Copy link
Author

#1981

WIP - working on KeyboardControls

Completed - useProgress and Loader

Copy link

Thank you for contributing! We’re marking this issue as stale as a gentle reminder to revisit it and give it the attention it needs to move forward.

Any activity, like adding an update or comment, will automatically remove the stale label so it stays on our radar.

Feel free to reach out on Discord if you need support or feedback from the community. This issue will close automatically soon if there’s no further activity. Thank you for understanding and for being part of the project!

@github-actions github-actions bot added the Stale Inactive issue label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale Inactive issue
Projects
None yet
Development

No branches or pull requests

1 participant