universalviewer
universalviewer copied to clipboard
UV4? Redux all the things
....to be refined, please!
https://github.com/UniversalViewer/universalviewer/projects/5#card-7223978
Have proposed creating iiif-commons/iiif-redux on the IIIF softwaredevs slack channel.
This should be a community effort that allows for viewer-role-only state management that can be extended via combineReducers
to more sophisticated use cases like content authoring.
The UV would replace its current pubsub system that uses https://github.com/edsilv/jquery-tiny-pubsub with a redux store inside manifold. Events like CANVASINDEX_CHANGED
would no longer be emitted within the UV - rather an action would be called on the external redux store which would trigger an event listened for in the UV.
Will need to categorise https://github.com/UniversalViewer/universalviewer/blob/master/src/modules/uv-shared-module/BaseEvents.ts into generic IIIF events and UV-specific events. The UV could extend the generic IIIF store.
All issues will be triaged for further investigation or closure by the 28 September 2023. If your issue is still relevant and would like for it be investigated further please comment by 14 September 2023.
@edsilv, is this still work in progress, or is this something we should close or clarify? I'll mark as active until you have a chance to answer.