iTwin / viewer

Monorepo that contains the iTwin Viewer npm packages and their related packages
MIT License
24 stars 15 forks source link

expose defaultFrontstageProvider Id #275

Closed Emi1yZhang closed 1 year ago

Emi1yZhang commented 1 year ago

I would like to request the exposure of the defaultFrontstageProvider.id in viewer-react/src/hooks/useFrontstages.js file. Currently, our codebase relies on checking the frontstage Id to determine if it is the default one. However, it appears that the defaultFrontstageProvider.id is subject to change in the 4.x version.

To avoid future manual modifications and ensure a consistent frontstage Id, it would be greatly beneficial if the default frontstage Id could be exposed as a constant in the useFrontstages.js file.

Thank you for considering this request.