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

Menu: error when using multiples Menu component #2073

Open
emerson-paiva opened this issue Feb 7, 2025 · 0 comments
Open

Menu: error when using multiples Menu component #2073

emerson-paiva opened this issue Feb 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@emerson-paiva
Copy link
Contributor

emerson-paiva commented Feb 7, 2025

Problem

When using multiple Menu components I receive the following error:

### 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.
  • I'm not sure if the error comes from the shoreline or the ariakit used by the shoreline.
  • In the example attached I the Menu should appear to the user on hover

Expected behavior

Not show errors

Reproducible Example

https://codesandbox.io/p/sandbox/shoreline-disabled-2jxclc

Suggested solution

No response

Additional context

No response

Package

@vtex/shoreline

Packages version

1.11.18

Browser

No response

Package Manager

pnpm

@emerson-paiva emerson-paiva added the bug Something isn't working label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant