iTwin / appui

Monorepo for iTwin.js AppUi
MIT License
8 stars 2 forks source link

App crashes when browser window is resized with status bar overflow menu open #1080

Open wilmaier opened 6 hours ago

wilmaier commented 6 hours ago

Describe the bug

App crashes when browser window is resized with status bar overflow menu open

Getting this error message: 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.

To Reproduce

  1. Open any iModel in Pineapple
  2. Resize the window to be small enough to see the ... on the right side of status bar
  3. Click the ... button to open the overflow popup.
  4. Resize the window left to right rapidly
  5. Sometimes it takes a while for a crash

NOTE: I also found that if the window width is set to 950px, it will crash immediately when opening the overflow popup

Expected Behavior

Resize without issues

Screenshots

Image

Desktop (please complete the applicable information)

No response

Additional context

No response

wilmaier commented 6 hours ago

Image

The above error occurred in the