Skip to content

createRoot causes various issues with performance and css behaviour  #13203

@SourceCipher

Description

@SourceCipher

Describe the bug

After upgrading our project, I realised that all the antd components with the tooltips or menus has the flickering issue when hovering off them as well as our table which is used to be very fast in performance, with the new upgrades became slow in scrolling responses and rendering. So I debugged down to 1 line of code which was causing this issue. It was the way we render the App component using createRoot.

Steps to reproduce

  1. Go to https://codesandbox.io/s/jolly-kalam-5mu6oi?file=/src/index.js
  2. Try hover on the button, you will see the tooltip flickering when you hover off the button.
  3. Try to modify the index.js and render the App the old way using ReactDOM.render
  4. Hover on the button and the tooltip will act normally

Expected behavior

Tooltips of antd components should not flicker on hover off

Actual behavior

Tooltips, menus of antd components flicker on hover off

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions