Skip to content

Commit

Permalink
return null from loader if status loading === 100
Browse files Browse the repository at this point in the history
  • Loading branch information
wotori committed Jun 6, 2022
1 parent cf8c9a3 commit c77c268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/r3f/Loader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Html, useProgress } from "@react-three/drei";

export default function Loader() {
const { progress } = useProgress();
return progress !== 100 && <Html center>{progress} % loaded</Html>;
return progress !== 100 ? <Html center>{progress} % loaded</Html> : null;
}

0 comments on commit c77c268

Please sign in to comment.