Skip to content

Commit

Permalink
Memoize component builder functions
Browse files Browse the repository at this point in the history
  • Loading branch information
stefl committed Nov 28, 2024
1 parent 852fed1 commit 27c8e4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/nextjs/src/components/AppComponents/Chat/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type ReactMarkdownWithStylesProps = Readonly<{
className?: string;
}>;

// This could do with further refactoring to make it more readable
const createComponents = (
className?: string,
lessonPlanSectionDescription?: string,
Expand Down

0 comments on commit 27c8e4d

Please sign in to comment.