Different behavior between development and production #2587
Unanswered
Lucascuibu
asked this question in
Bug report
Replies: 1 comment 1 reply
-
|
Sure let me check it out |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am writing a project using react, three/fiber, and vite.
I am trying to use Zustand to manage the state.
By default I want both normal and wireframe are hidden until we turn them on via leva, thus they are set false.
Everything works fine in development. But after I run vite build, these two boolean are set true.
such behavior can be checked in the second line of the following function.
Also after I built, I can turn off the wire frame, but I fail to turn off the normals. Both functionality works fine in the development.
The full code can be found in my repo.
https://github.com/Lucascuibu/homepage/blob/main/src/Graphicses/Bunny.tsx
I am new to React and Zustand thus I am not very familiar about them. Please let me know if there's some inappropriate usage in my code. I am very amazed by not only zustand but also fiber/drei/three eco system. Those elegant libs make my code much simpler and easy to organize. Thank you for all you guys work.
Beta Was this translation helpful? Give feedback.
All reactions