You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The arrays in cva are never super large, but nonetheless accumulator spread has a time complexity of O(n^2). Could use acc.push(cvClass, cvClassName) instead.
This discussion was converted from issue #351 on November 26, 2025 14:31.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The arrays in cva are never super large, but nonetheless accumulator spread has a time complexity of
O(n^2). Could useacc.push(cvClass, cvClassName)instead.cva/packages/class-variance-authority/src/index.ts
Line 126 in 1eedbe9
Related reading: https://jpcamara.com/2023/03/07/making-tanstack-table.html.
Beta Was this translation helpful? Give feedback.
All reactions