iTwin / appui

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

Frontstage is missing registered widgets #778

Closed bilalbaig3101 closed 4 months ago

bilalbaig3101 commented 5 months ago

Describe the bug

While upgrading itwin/presentation-component to 5.0.0. On doing so, I upgraded itwinjs-core to 4.4.0, appui to 4.9.0, and itwinui-react to 3. On app start, the viewer stage opens without the widgets, and on reopening, it shows the widgets. migration guideline: https://github.com/iTwin/presentation/wiki/5.x-migration-guide#breaking-changes Project: Studio Branch link: https://github.com/iTwin/studio/tree/bilal/upgrade-presentation-component

To Reproduce

Expected Behavior

No response

Screenshots

First time (without widgets) image Other times (with widgets) image

Desktop (please complete the applicable information)

No response

Additional context

No response

johnnyd710 commented 5 months ago

I believe this is caused because of where we call loadUiItems in the visualizer app. If we register ui items earlier (e.g., during app startup) the issue will be resolved. Any idea why?

GerardasB commented 5 months ago

Haven't had the chance to debug it yet, but I'll try and register a provider from content group getter.