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

dat.gui is present after leaving the page #311

Open
onixapple opened this issue Jan 9, 2022 · 1 comment
Open

dat.gui is present after leaving the page #311

onixapple opened this issue Jan 9, 2022 · 1 comment

Comments

@onixapple
Copy link

Hello , due to lack of time i implemented three js in react the primitive way, set route for it and works fine untill i switch to another link.

const Modeling = () => {
const mountRef = useRef(null);
useEffect(() => {
three.js codee
)}
return (

After going back to the another page, dat.gui is present there
Any idea why?

@andrevenancio
Copy link

the code above doesn't really help because you are not referencing any dat.gui code. But dat.gui add's to the document.body automatically unless you tell it not to via new dat.GUI({ autoPlace: false });

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

No branches or pull requests

2 participants