Skip to content

Commit

Permalink
fix: client-only rendering of generated page
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed May 7, 2024
1 parent e574912 commit 33e95c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs-site/src/components/generator/contract-files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export function GeneratedContractFiles({
usageNode: React.ReactNode;
clarityNode: React.ReactNode;
}) {
// const [loaded, setLoaded] = React.useState(false);
// React.useEffect(() => {
// setLoaded(true);
// }, [setLoaded]);
// if (!loaded) return null;
const [loaded, setLoaded] = React.useState(false);
React.useEffect(() => {
setLoaded(true);
}, [setLoaded]);
if (!loaded) return null;
return (
<div className="w-full">
<div className="items-between container flex w-full flex-col justify-between border-b py-4 md:flex-row">
Expand Down

0 comments on commit 33e95c4

Please sign in to comment.