Closed MichaelBelousov closed 3 years ago
I am going to attempt a (bad) workaround and report back if I succeed
seems to work
await UiFramework.initialize(store, IModelApp.i18n);
// SEE: https://github.com/imodeljs/viewer-components-react/issues/74
(StateManager as any)._singletonStore = store;
Depending on what you're doing, i would argue this issue be filed with the itwin-viewer repo, not viewer-components-react
I may have brain-hiccupped and thought that this monorepo contained that package. I'll make an identical issue there
made https://github.com/imodeljs/itwin-viewer/issues/62, closing this one
Maybe I'm doing something wrong here, but I am initializing UiFramework with a custom store instance, and as a result the Viewer component throws this error:
My cursory understanding is that itwin-viewer-react erroneously uses StateManager's store reference when it should be using UiFramework's store reference which allows both. Otherwise I don't know much about StateManager's role.