Skip to content

refactor: remove useless useMemo hook from CodeTabs component#74

Open
alamenai wants to merge 1 commit into
elevenlabs:mainfrom
alamenai:refactor/code-tabs
Open

refactor: remove useless useMemo hook from CodeTabs component#74
alamenai wants to merge 1 commit into
elevenlabs:mainfrom
alamenai:refactor/code-tabs

Conversation

@alamenai
Copy link
Copy Markdown
Contributor

@alamenai alamenai commented May 9, 2026

CodeTabs component contains a function that's wrapped by useMemo while the function itself just return a primitive type string.

By definition ( from React official docs ) useMemo is a hook that's used to cache the results between re-renders for expensive calculation.

image

Based on the current logic, this is pure function that returns the installation type ( string ).

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 9, 2026

@alamenai is attempting to deploy a commit to the ElevenLabs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Collaborator

@PaulAsjes PaulAsjes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants