Skip to content

Commit

Permalink
fix: uncaught client error
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiyou committed Nov 29, 2024
1 parent 9dc2881 commit 7c285ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/interactive-docs/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export { code } from "./code";
import { Switch } from "@kobalte/core/switch";
import {
children,
type Component,
createEffect,
createMemo,
Expand Down Expand Up @@ -96,7 +97,8 @@ export function createInteractiveDoc<
setPreview(() => preview);
});

return <>{props.children}</>;
const childrenMemo = children(() => props.children);
return <>{childrenMemo()}</>;
};
const Section = (props: ParentProps<{ section?: Sections }>) => {
const { setCurrentSection, currentSection } = useInteractiveDocs();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export const { Section, InteractiveDoc, Condition, Toggle, preload } =
smartRouting: false,
pg: { name: "toss", payMethods: "card" },
},
initialSelectedExample: ["react", "express"],
initialSelectedExample: ["React", "Express"],
preview: Preview,
});

0 comments on commit 7c285ff

Please sign in to comment.