Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tooltip] A badge cannot be rendered inside a Tooltip - app crashes #581

Open
dchenk opened this issue Sep 5, 2024 · 0 comments
Open

[Tooltip] A badge cannot be rendered inside a Tooltip - app crashes #581

dchenk opened this issue Sep 5, 2024 · 0 comments

Comments

@dchenk
Copy link

dchenk commented Sep 5, 2024

When rendering a Badge inside a Tooltip, some state update happens in a loop or recursively, causing the app to crash with this error:

Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.

Repro:

  <Tooltip content="Something here">
    <Badge severity="info" value="Hello" />
  </Tooltip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant