Favivon - Correção

This commit is contained in:
2026-05-30 19:59:39 -03:00
parent 76ddaa815d
commit d7dfd221f0
32859 changed files with 5459654 additions and 404 deletions
+20
View File
@@ -0,0 +1,20 @@
import * as React from 'react';
import { useThree } from '@react-three/fiber';
function AdaptiveEvents() {
const get = useThree(state => state.get);
const setEvents = useThree(state => state.setEvents);
const current = useThree(state => state.performance.current);
React.useEffect(() => {
const enabled = get().events.enabled;
return () => setEvents({
enabled
});
}, []);
React.useEffect(() => setEvents({
enabled: current === 1
}), [current]);
return null;
}
export { AdaptiveEvents };