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
{{ message }}
This repository was archived by the owner on Jan 21, 2024. It is now read-only.
I use @sindresorhus/class-names liberally throughout my codebase, because it makes tailwind config strings managable. However it also introduces overhead in every render.
Mitigation:
replace direct calls to this library with calls to a wrapper function, say, @/sbstr8/lib/class-names, that provides memoization (via ramda?
does useMemo work in server components? A quick google did not find definitive answer -- someone claims that no hooks work, but this is obviously false (usehooks.com etc.). If useMemo() works in server components, this could be a decent implementation path
The text was updated successfully, but these errors were encountered:
I use
@sindresorhus/class-names
liberally throughout my codebase, because it makes tailwind config strings managable. However it also introduces overhead in every render.Mitigation:
@/sbstr8/lib/class-names
, that provides memoization (via ramda?The text was updated successfully, but these errors were encountered: