iTwin / viewer

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

Enhancement to configure a redux middleware #242

Open supriyabhosle opened 1 year ago

supriyabhosle commented 1 year ago

Currently we have some table components that we would like to use as a UI Widget provider. But these components are using redux thunk. Can a support to configure a redux middleware also be provided?

aruniverse commented 1 year ago

Have you looked at https://www.itwinjs.org/learning/ui/appui-react/state/?

What you want might be already possible using the StateManager and ReducerRegistry from AppUi

aruniverse commented 1 year ago

a little unrelated, but possibly look into something like https://twitter.com/_georgemoller/status/1703935267327901722 to inject providers into the viewer; eg IModelJsViewProvider from bentley/imdoeljs-react hooks