Replies: 1 comment
-
I think that before adding Lodash, we should know how much improvement can we get and if it is worth it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have realized that some of the components (for example Tabs), use event listeners for handling continuous events (scroll, resizing...)
In those scenarios, it's often considered a good practice to debounce or throttle the event handler, preventing it from firing too frequently, especially if the handler involves expensive computations or updates to the DOM.
This can help improve performance and responsiveness.
I've taken a look at some options, and the consensus seems to be to use lodash, a collection of utility functions that don't require any additional libraries or dependencies.
Beta Was this translation helpful? Give feedback.
All reactions