Skip to content

[EuiDataGrid] track re-renders from hooks #4294

Closed as not planned
Closed as not planned

Description

@chandlerprall

The data grid relies heavily on React hooks to maintain/cache various states and values. In many cases it is trivially simple to trigger unnecessary re-computations and re-renders of these hooks. The data grid should be given a new debugPerformance prop that, when enabled, console.logs when various hooks trigger, and ideally can provide a reason.

There are some existing browser/react extensions/hacks that can provide the same or similar information, but requiring setting those up, especially for downstream projects like Kibana, are complicated and time consuming.

Activity

  1. timroes commented on Nov 25, 2020

    @timroes
    Contributor

    Alteranatively we could evaluate using the performance API where it might be more appropriate.

  2. alexwizp commented on Nov 26, 2020

    @alexwizp
    Contributor

    @VladLasitsa cannot assign it to you, but could you please take it?

  3. VladLasitsa commented on Nov 26, 2020

    @VladLasitsa
    Contributor

    Ok, I'll take it, but I can't assign it to myself either

  4. stratoula commented on Nov 26, 2020

    @stratoula
    Contributor

    Done 😉

  5. alexwizp commented on Nov 26, 2020

    @alexwizp
    Contributor

    I'm just curious why we cannot profiling EuiDataGrid component with the Chrome Performance Tab / DevTools Profiler. It just seems to me that maybe these logs will only annoy the person who really focuses on fixing performance problems.

  6. chandlerprall commented on Dec 1, 2020

    @chandlerprall
    ContributorAuthor

    I'm just curious why we cannot profiling EuiDataGrid component with the Chrome Performance Tab / DevTools Profiler. It just seems to me that maybe these logs will only annoy the person who really focuses on fixing performance problems.

    With heavy hooks usage for caching computed values, it isn't enough to know when a component re-rendered, but if a useMemo fired. I've added and removed console.logs to the hooks numerous times to try and track down a rendering performance issue, and it would be helpful to have a more permanent solution.

  7. github-actions commented on May 31, 2021

    @github-actions

    👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment.

  8. added
    stale-issue
    on May 31, 2021
  9. added and removed
    stale-issue
    on Jun 3, 2021
  10. removed their assignment
    on Jun 3, 2021
  11. chandlerprall commented on Jun 3, 2021

    @chandlerprall
    ContributorAuthor

    This is definitely something we still want. Leaving unassigned in case someone else is interested in picking it up before we can get to it.

  12. added
    help wanted
    on Mar 6, 2023
  13. removed
    help wanted
    on Apr 17, 2023
  14. github-actions commented on Oct 15, 2023

    @github-actions

    👋 Hi there - this issue hasn't had any activity in 6 months. If the EUI team has not explicitly expressed that this is something on our roadmap, it's unlikely that we'll pick this issue up. We would sincerely appreciate a PR/community contribution if this is something that matters to you! If not, and there is no further activity on this issue for another 6 months (i.e. it's stale for over a year), the issue will be auto-closed.

  15. added
    stale-issue
    on Oct 15, 2023
  16. github-actions commented on Apr 12, 2024

    @github-actions

    ❌ Per our previous message, this issue is auto-closing after having been open and inactive for a year. If you strongly feel this is still a high-priority issue, or are interested in contributing, please leave a comment or open a new issue linking to this one for context.

  17. added
    stale-issue-closed
    on Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    data gridstale-issuestale-issue-closed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions